Class IndexingBatchTask<T extends Searchable>
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.migration.macro.IndexingBatchTask<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
BatchTask<T>
public class IndexingBatchTask<T extends Searchable> extends Object implements BatchTask<T>
A decorating batch task, re-indexing the searchable that the task is applied to.The delegate task is applied first, before the indexing occurs.
-
-
Constructor Summary
Constructors Constructor Description IndexingBatchTask(BatchTask<T> delegate, ConfluenceIndexer indexer)
-
-
-
Constructor Detail
-
IndexingBatchTask
public IndexingBatchTask(BatchTask<T> delegate, ConfluenceIndexer indexer)
-
-
Method Detail
-
apply
public boolean apply(T item, int index, int batchSize) throws Exception
- Specified by:
apply
in interfaceBatchTask<T extends Searchable>
- Parameters:
item
- the item to be operate onindex
- the index of this item in its batchbatchSize
- the size of the batch- Returns:
- true if the item required work to be done, false otherwise
- Throws:
Exception
-
-