public class XhtmlSpaceDescriptionsWorkSource extends Object implements BatchableWorkSource<ContentEntityObject>
A work source that provides batches of SpaceDescription
s with BodyContent of type BodyType.XHTML
This class is thread-safe.
Constructor and Description |
---|
XhtmlSpaceDescriptionsWorkSource(ContentDao contentDao,
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 XhtmlSpaceDescriptionsWorkSource(ContentDao contentDao, 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 int getTotalSize()
getTotalSize
in interface BatchableWorkSource<ContentEntityObject>
public void reset(int total)
BatchableWorkSource
reset
in interface BatchableWorkSource<ContentEntityObject>
Copyright © 2003–2016 Atlassian. All rights reserved.