T
- type of the work itempublic interface BatchableWorkSource<T>
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)
Modifier and Type | Method and Description |
---|---|
List<T> |
getBatch() |
int |
getTotalSize() |
boolean |
hasMoreBatches() |
int |
numberOfBatches() |
void |
reset(int total)
Reset the work source ready to begin getting batches again.
|
List<T> getBatch()
boolean hasMoreBatches()
int numberOfBatches()
void reset(int total)
int getTotalSize()
Copyright © 2003–2017 Atlassian. All rights reserved.