public interface

BatchableWorkSource

com.atlassian.confluence.content.render.xhtml.migration.BatchableWorkSource<T>
Known Indirect Subclasses

Class Overview

Source of migration work that can be broken up into batches.

Implementations can contain state to manage how to compute the next batch of work.

Instances should be discarded once there is no more work left to retrieve (i.e. when hasMoreBatches() returns false)

Summary

Public Methods
List<T> getBatch()
boolean hasMoreBatches()
int numberOfBatches()

Public Methods

public List<T> getBatch ()

Returns
  • a batch or subset of the total work contained in the work source

public boolean hasMoreBatches ()

Returns
  • true if more work batches exist

public int numberOfBatches ()

Returns
  • total number of work batches available.