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): -
| Modifier and Type | Field and Description |
|---|---|
static int |
SENTINEL
This value should be returned by
next() to indicate that
there are no more values. |
| Modifier and Type | Method and Description |
|---|---|
int |
next()
Returns the next id for checking, or a sentinel value if there are no
more to check.
|
static final int SENTINEL
next() to indicate that
there are no more values.Copyright © 2015 DuraSpace. All Rights Reserved.