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