Mercurial > hg > blitz_stable
comparison src/org/dancres/blitz/remote/MatchSetImpl.java @ 4:d3ec5ebc3dba
Fix up a small race-condition and and a todo for thread-safety in MatchSetImpl.
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Sat, 25 Apr 2009 08:38:27 +0100 |
parents | 3dc0c5604566 |
children |
comparison
equal
deleted
inserted
replaced
3:47767be3a265 | 4:d3ec5ebc3dba |
---|---|
13 | 13 |
14 import org.dancres.blitz.mangler.EntryMangler; | 14 import org.dancres.blitz.mangler.EntryMangler; |
15 | 15 |
16 import org.dancres.blitz.remote.view.EntryViewUID; | 16 import org.dancres.blitz.remote.view.EntryViewUID; |
17 | 17 |
18 /** | |
19 * @todo Consider making this thread safe, even though multi-threading against a MatchSet makes little sense in most cases | |
20 * (like multi-thread JS transactions). | |
21 * | |
22 * @author dan | |
23 */ | |
18 public class MatchSetImpl implements MatchSet { | 24 public class MatchSetImpl implements MatchSet { |
19 static final int CHUNK_SIZE = 50; | 25 static final int CHUNK_SIZE = 50; |
20 | 26 |
21 private Lease theLease; | 27 private Lease theLease; |
22 private EntryViewUID theViewId; | 28 private EntryViewUID theViewId; |