com.atlassian.confluence.content.render.xhtml.migration.macro
Class IndexingBatchTask<T extends com.atlassian.bonnie.Searchable>

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.migration.macro.IndexingBatchTask<T>
Type Parameters:
T -
All Implemented Interfaces:
BatchTask<T>

public class IndexingBatchTask<T extends com.atlassian.bonnie.Searchable>
extends java.lang.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
IndexingBatchTask(BatchTask<T> delegate, ConfluenceIndexer indexer)
           
 
Method Summary
 boolean apply(T item, int index, int batchSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexingBatchTask

public IndexingBatchTask(BatchTask<T> delegate,
                         ConfluenceIndexer indexer)
Method Detail

apply

public boolean apply(T item,
                     int index,
                     int batchSize)
              throws java.lang.Exception
Specified by:
apply in interface BatchTask<T extends com.atlassian.bonnie.Searchable>
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.