public class QueuedTaskProcessor extends AbstractTaskProcessor implements Esi4JTaskProcessor
Esi4JTaskProcessor that uses a QueuedTaskExecutor to process
tasks asynchronously| Constructor and Description |
|---|
QueuedTaskProcessor(Esi4JIndex index,
Esi4JEntityResolver 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
|
Esi4JEntityResolver |
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, Esi4JEntityResolver entityResolver)
public Esi4JEntityResolver getEntityResolver()
public void processTasks(Esi4JEntityTask[] tasks)
processTasks in interface Esi4JTaskProcessorpublic <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 © 2013 Molindo GmbH. All Rights Reserved.