Class ContentWithTasksWorkSource
java.lang.Object
com.atlassian.confluence.content.render.xhtml.migration.ContentWithTasksWorkSource
- All Implemented Interfaces:
BatchableWorkSource<ContentEntityObject>
public class ContentWithTasksWorkSource
extends Object
implements BatchableWorkSource<ContentEntityObject>
A work source that provides batches of ContentEntityObjects that have XHTML formatted bodies.
This class is thread-safe.
-
Constructor Details
-
ContentWithTasksWorkSource
-
-
Method Details
-
getBatch
Returns a batch of work. When work is exhausted an empty list is returned.- Specified by:
getBatchin interfaceBatchableWorkSource<ContentEntityObject>- Returns:
- batch of work
-
hasMoreBatches
public boolean hasMoreBatches()- Specified by:
hasMoreBatchesin interfaceBatchableWorkSource<ContentEntityObject>- Returns:
- true if more work batches exist
-
numberOfBatches
public int numberOfBatches()- Specified by:
numberOfBatchesin interfaceBatchableWorkSource<ContentEntityObject>- Returns:
- total number of work batches available.
-
reset
public void reset(int total) Description copied from interface:BatchableWorkSourceReset the work source ready to begin getting batches again.- Specified by:
resetin interfaceBatchableWorkSource<ContentEntityObject>
-
getTotalSize
public int getTotalSize()- Specified by:
getTotalSizein interfaceBatchableWorkSource<ContentEntityObject>
-