|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- type of the work itempublic interface BatchableWorkSource<T>
Source of migration work that can be broken up into batches.
Implementations can contain state to manage how to compute the next batch of work.
Instances should be discarded once there is no more work left to retrieve (i.e. when hasMoreBatches()
returns false)
Method Summary | |
---|---|
java.util.List<T> |
getBatch()
|
int |
getTotalSize()
|
boolean |
hasMoreBatches()
|
int |
numberOfBatches()
|
void |
reset(int total)
Reset the work source ready to begin getting batches again. |
Method Detail |
---|
java.util.List<T> getBatch()
boolean hasMoreBatches()
int numberOfBatches()
void reset(int total)
int getTotalSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |