public class WikiMarkupContentEntityObjectMigrationWorkSource extends Object implements BatchableWorkSource<ContentEntityObject>
ContentEntityObject
s that require migration.
This class is thread-safe.
Constructor and Description |
---|
WikiMarkupContentEntityObjectMigrationWorkSource(ContentDao contentDao,
int batchSize) |
WikiMarkupContentEntityObjectMigrationWorkSource(ContentDao contentDao,
int batchSize,
int contentCount) |
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 WikiMarkupContentEntityObjectMigrationWorkSource(ContentDao contentDao, int batchSize)
public WikiMarkupContentEntityObjectMigrationWorkSource(ContentDao contentDao, int batchSize, int contentCount)
contentDao
- batchSize
- the number of items in each batch of workcontentCount
- the total amount of work should you have already pre-computed it.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.