OrderedEntityObjectBatchableWorkSource
.@Deprecated public abstract class AbstractOrderedEntityObjectBatchableWorkSource<T extends com.atlassian.core.bean.EntityObject> extends Object implements BatchableWorkSource<T>
Constructor and Description |
---|
AbstractOrderedEntityObjectBatchableWorkSource(int batchSize)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
List<T> |
getBatch()
Deprecated.
Returns a batch of work.
|
protected abstract List<T> |
getLatestEntityObjects(long startContentId,
int maxRows)
Deprecated.
|
abstract int |
getTotalSize()
Deprecated.
|
boolean |
hasMoreBatches()
Deprecated.
|
int |
numberOfBatches()
Deprecated.
|
void |
reset(int total)
Deprecated.
Reset the work source ready to begin getting batches again.
|
public AbstractOrderedEntityObjectBatchableWorkSource(int batchSize)
public List<T> getBatch()
getBatch
in interface BatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>
protected abstract List<T> getLatestEntityObjects(long startContentId, int maxRows)
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 abstract int getTotalSize()
getTotalSize
in interface BatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>
public void reset(int total)
BatchableWorkSource
reset
in interface BatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>
Copyright © 2003–2016 Atlassian. All rights reserved.