Class OrderedEntityObjectBatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>
- java.lang.Object
- 
- com.atlassian.confluence.content.render.xhtml.migration.OrderedEntityObjectBatchableWorkSource<T>
 
- 
- All Implemented Interfaces:
- BatchableWorkSource<T>
 - Direct Known Subclasses:
- LatestVersionXhtmlContentWorkSource
 
 public class OrderedEntityObjectBatchableWorkSource<T extends com.atlassian.core.bean.EntityObject> extends Object implements BatchableWorkSource<T> ABatchableWorkSourceimplementation which retrieves batches ofEntityObjects by ordering the entities by their IDs.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classOrderedEntityObjectBatchableWorkSource.EntityRetrievalExceptionprotected static interfaceOrderedEntityObjectBatchableWorkSource.EntitySource<T extends com.atlassian.core.bean.EntityObject>
 - 
Constructor SummaryConstructors Constructor Description OrderedEntityObjectBatchableWorkSource(int batchSize, OrderedEntityObjectBatchableWorkSource.EntitySource<T> entitySource)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description List<T>getBatch()Returns a batch of work.intgetTotalSize()booleanhasMoreBatches()intnumberOfBatches()voidreset(int total)Reset the work source ready to begin getting batches again.
 
- 
- 
- 
Constructor Detail- 
OrderedEntityObjectBatchableWorkSourcepublic OrderedEntityObjectBatchableWorkSource(int batchSize, OrderedEntityObjectBatchableWorkSource.EntitySource<T> entitySource)
 
- 
 - 
Method Detail- 
getBatchpublic List<T> getBatch() Returns a batch of work. When work is exhausted an empty list is returned.- Specified by:
- getBatchin interface- BatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>
- Returns:
- batch of work
 
 - 
hasMoreBatchespublic boolean hasMoreBatches() - Specified by:
- hasMoreBatchesin interface- BatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>
- Returns:
- true if more work batches exist
 
 - 
numberOfBatchespublic int numberOfBatches() - Specified by:
- numberOfBatchesin interface- BatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>
- Returns:
- total number of work batches available.
 
 - 
getTotalSizepublic int getTotalSize() - Specified by:
- getTotalSizein interface- BatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>
 
 - 
resetpublic void reset(int total) Description copied from interface:BatchableWorkSourceReset the work source ready to begin getting batches again.- Specified by:
- resetin interface- BatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>
 
 
- 
 
-