Class OrderedEntityObjectBatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>

    • Method Detail

      • getBatch

        public List<T> getBatch()
        Returns a batch of work. When work is exhausted an empty list is returned.
        Specified by:
        getBatch in interface BatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>
        Returns:
        batch of work
      • hasMoreBatches

        public boolean hasMoreBatches()
        Specified by:
        hasMoreBatches in interface BatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>
        Returns:
        true if more work batches exist
      • numberOfBatches

        public int numberOfBatches()
        Specified by:
        numberOfBatches in interface BatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>
        Returns:
        total number of work batches available.
      • reset

        public void reset​(int total)
        Description copied from interface: BatchableWorkSource
        Reset the work source ready to begin getting batches again.
        Specified by:
        reset in interface BatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>