com.atlassian.confluence.content.render.xhtml.migration
Interface BatchTask<T>

Type Parameters:
T - the type of content item that should be operated upon
All Known Implementing Classes:
ChangeSpaceDescriptionsBodyTypeTask, ContentEntityMigrationBatchTask, ConvertToRelativeLinksTask, IndexingBatchTask

public interface BatchTask<T>

A BatchTask implementation is supplied to a WorkSourceBatchRunner to actually perform the required work on individual items read from the BatchableWorkSource.

Since:
4.0

Method Summary
 boolean apply(T item, int index, int batchSize)
           
 

Method Detail

apply

boolean apply(T item,
              int index,
              int batchSize)
              throws java.lang.Exception
Parameters:
item - the item to be operate on
index - the index of this item in its batch
batchSize - the size of the batch
Returns:
true if the item required work to be done, false otherwise
Throws:
java.lang.Exception


Copyright © 2003-2014 Atlassian. All Rights Reserved.