public class ContentWithTasksWorkSource extends Object implements BatchableWorkSource<ContentEntityObject>
A work source that provides batches of ContentEntityObject
s that have XHTML formatted bodies.
This class is thread-safe.
Constructor and Description |
---|
ContentWithTasksWorkSource(PageManager pageManager,
int batchSize) |
Modifier and Type | Method and Description |
---|---|
List<ContentEntityObject> |
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 ContentWithTasksWorkSource(PageManager pageManager, int batchSize)
public List<ContentEntityObject> getBatch()
getBatch
in interface BatchableWorkSource<ContentEntityObject>
public boolean hasMoreBatches()
hasMoreBatches
in interface BatchableWorkSource<ContentEntityObject>
public int numberOfBatches()
numberOfBatches
in interface BatchableWorkSource<ContentEntityObject>
public void reset(int total)
BatchableWorkSource
reset
in interface BatchableWorkSource<ContentEntityObject>
public int getTotalSize()
getTotalSize
in interface BatchableWorkSource<ContentEntityObject>
Copyright © 2003–2020 Atlassian. All rights reserved.