com.atlassian.confluence.content.render.xhtml.migration
Class AbstractOrderedEntityObjectBatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.migration.AbstractOrderedEntityObjectBatchableWorkSource<T>
All Implemented Interfaces:
BatchableWorkSource<T>

Deprecated. Since 5.3 Use OrderedEntityObjectBatchableWorkSource.

@Deprecated
public abstract class AbstractOrderedEntityObjectBatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>
extends java.lang.Object
implements BatchableWorkSource<T>


Constructor Summary
AbstractOrderedEntityObjectBatchableWorkSource(int batchSize)
          Deprecated.  
 
Method Summary
 java.util.List<T> getBatch()
          Deprecated. Returns a batch of work.
protected abstract  java.util.List<T> getLatestEntityObjects(long startContentId, int maxRows)
          Deprecated.  
abstract  int getTotalSize()
          Deprecated.  
 boolean hasMoreBatches()
          Deprecated.  
 int numberOfBatches()
          Deprecated.  
 void reset(int total)
          Deprecated. Reset the work source ready to begin getting batches again.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractOrderedEntityObjectBatchableWorkSource

public AbstractOrderedEntityObjectBatchableWorkSource(int batchSize)
Deprecated. 
Method Detail

getBatch

public java.util.List<T> getBatch()
Deprecated. 
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

getLatestEntityObjects

protected abstract java.util.List<T> getLatestEntityObjects(long startContentId,
                                                            int maxRows)
Deprecated. 

hasMoreBatches

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

numberOfBatches

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

getTotalSize

public abstract int getTotalSize()
Deprecated. 
Specified by:
getTotalSize in interface BatchableWorkSource<T extends com.atlassian.core.bean.EntityObject>

reset

public void reset(int total)
Deprecated. 
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>


Copyright © 2003-2014 Atlassian. All Rights Reserved.