public class CheckpointAndChangeQueue
extends java.lang.Object
CheckpointAndChange objects to be processed by the
DiffingConnectorTraversalManager. Objects are added to the queue from
a ChangeSource and assigned a DiffingConnectorCheckpoint.
The client accesses objects by calling resume(String).
To facilitate retry of processing for objects in the queue
CheckpointAndChange objects remain until the client
indicates they have completed processing by calling resume(String)
with the object's checkpoint or a later object's checkpoint.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAXIMUM_QUEUE_SIZE |
| Constructor and Description |
|---|
CheckpointAndChangeQueue(ChangeSource changeSource,
java.io.File persistDir,
DocumentHandleFactory internalDocumentHandleFactory,
DocumentHandleFactory clientDocumentHandleFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
setMaximumQueueSize(int maximumQueueSize) |
void |
start(java.lang.String checkpointString)
Initialize to start processing from after the passed in checkpoint
or from the beginning if the passed in checkpoint is null.
|
public static final int DEFAULT_MAXIMUM_QUEUE_SIZE
public CheckpointAndChangeQueue(ChangeSource changeSource, java.io.File persistDir, DocumentHandleFactory internalDocumentHandleFactory, DocumentHandleFactory clientDocumentHandleFactory)
public void start(java.lang.String checkpointString)
throws java.io.IOException
java.io.IOExceptionpublic void setMaximumQueueSize(int maximumQueueSize)