public class OrderedEntityObjectBatchableWorkSource<T extends com.atlassian.core.bean.EntityObject> extends Object implements BatchableWorkSource<T>
BatchableWorkSource implementation which retrieves batches of EntityObjects by
 ordering the entities by their IDs.| Modifier and Type | Class and Description | 
|---|---|
| static class  | OrderedEntityObjectBatchableWorkSource.EntityRetrievalException | 
| protected static interface  | OrderedEntityObjectBatchableWorkSource.EntitySource<T extends com.atlassian.core.bean.EntityObject> | 
| Constructor and Description | 
|---|
| OrderedEntityObjectBatchableWorkSource(int batchSize,
                                      OrderedEntityObjectBatchableWorkSource.EntitySource<T> entitySource) | 
| Modifier and Type | Method and Description | 
|---|---|
| List<T> | getBatch()Returns a batch of work. | 
| int | getTotalSize() | 
| boolean | hasMoreBatches() | 
| int | numberOfBatches() | 
| void | reset(int total)Reset the work source ready to begin getting batches again. | 
public OrderedEntityObjectBatchableWorkSource(int batchSize,
                                              OrderedEntityObjectBatchableWorkSource.EntitySource<T> entitySource)
public List<T> getBatch()
getBatch in interface BatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>public boolean hasMoreBatches()
hasMoreBatches in interface BatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>public int numberOfBatches()
numberOfBatches in interface BatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>public int getTotalSize()
getTotalSize in interface BatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>public void reset(int total)
BatchableWorkSourcereset in interface BatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>Copyright © 2003–2017 Atlassian. All rights reserved.