public class IdChangeSource extends Object implements Change.Source<IdChangeSource.Batch>
| Modifier and Type | Class and Description |
|---|---|
class |
IdChangeSource.Batch
Batch implementation for this change source.
|
| Constructor and Description |
|---|
IdChangeSource(String format,
long start,
long stop,
long batchSize) |
| Modifier and Type | Method and Description |
|---|---|
IdChangeSource.Batch |
firstBatch()
Fetch the first batch.
|
static IdChangeSource |
forItems(long start,
long stop,
long batchSize)
Build and IdChangeSource for items as opposed to properties.
|
IdChangeSource.Batch |
nextBatch(IdChangeSource.Batch lastBatch)
Fetches the next batch after lastBatch.
|
public IdChangeSource(String format, long start, long stop, long batchSize)
public static IdChangeSource forItems(long start, long stop, long batchSize)
public IdChangeSource.Batch firstBatch() throws RetryableException
Change.SourcefirstBatch in interface Change.Source<IdChangeSource.Batch>RetryableException - is the fetch fails in a retryable waypublic IdChangeSource.Batch nextBatch(IdChangeSource.Batch lastBatch) throws RetryableException
Change.SourcenextBatch in interface Change.Source<IdChangeSource.Batch>RetryableException - is the fetch fails in a retryable wayCopyright © 2015. All rights reserved.