|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BitstreamDispatcher
BitstreamDispatchers are strategy objects that hand bitstream ids out to workers. Implementations must be threadsafe.
The rationale behind the use of the Sentinel pattern (rather than the more traditional iterator pattern or a cursor c.f. java.sql.ResultSet): -
| Field Summary | |
|---|---|
static int |
SENTINEL
This value should be returned by next() to indicate that
there are no more values. |
| Method Summary | |
|---|---|
int |
next()
Returns the next id for checking, or a sentinel value if there are no more to check. |
| Field Detail |
|---|
static final int SENTINEL
next() to indicate that
there are no more values.
| Method Detail |
|---|
int next()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||