public class QueuedTaskProcessor extends AbstractTaskProcessor implements Esi4JTaskProcessor
Esi4JTaskProcessor that uses a QueuedTaskExecutor to process
tasks asynchronously| Constructor and Description |
|---|
QueuedTaskProcessor(Esi4JIndex index,
Esi4JBatchedEntityResolver entityResolver) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<T> T |
execute(SerializableEsi4JOperation<T> operation)
executes operation after currently submitted tasks and before newly
submitted tasks
|
Esi4JBatchedEntityResolver |
getEntityResolver() |
protected void |
onAfterBulkIndex() |
protected void |
onBeforeBulkIndex()
make sure to always call
onAfterBulkIndex() afterwards |
void |
processTasks(Esi4JEntityTask[] tasks) |
getIndex, processTasksclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIndex, processTaskspublic QueuedTaskProcessor(Esi4JIndex index, Esi4JBatchedEntityResolver entityResolver)
public Esi4JBatchedEntityResolver getEntityResolver()
public void processTasks(Esi4JEntityTask[] tasks)
processTasks in interface Esi4JTaskProcessortasks - an array of Esi4JEntityTask, may contain multiple
tasks for the same entity or nullpublic <T> T execute(SerializableEsi4JOperation<T> operation)
Esi4JTaskProcessorexecute in interface Esi4JTaskProcessorprotected void onBeforeBulkIndex()
onAfterBulkIndex() afterwardsprotected void onAfterBulkIndex()
public void close()
close in interface Esi4JTaskProcessorclose in class AbstractTaskProcessorCopyright © 2015 Molindo GmbH. All Rights Reserved.