|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BatchBackend
Implementors of this interface are not drop-in replacements for the standard BackendQueueProcessorFactory but are meant to be used only during batch processing. The order of LuceneWork(s) processed is not guaranteed as the queue is consumed by several concurrent workers.
| Method Summary | |
|---|---|
void |
close()
Used to shutdown and release resources. |
void |
doWorkInSync(LuceneWork work)
Does one work in sync |
void |
enqueueAsyncWork(LuceneWork work)
Enqueues one work to be processed asynchronously |
void |
initialize(java.util.Properties props,
MassIndexerProgressMonitor monitor,
SearchFactoryImplementor searchFactory)
Used at startup, called once as first method. |
void |
stopAndFlush(long timeout,
java.util.concurrent.TimeUnit unit)
Waits until all work is done and terminates the executors. |
| Method Detail |
|---|
void initialize(java.util.Properties props,
MassIndexerProgressMonitor monitor,
SearchFactoryImplementor searchFactory)
props - all configuration propertiessearchFactory - the client
void enqueueAsyncWork(LuceneWork work)
throws java.lang.InterruptedException
work -
java.lang.InterruptedException - if the current thread is interrupted while
waiting for the work queue to have enough space.void doWorkInSync(LuceneWork work)
work -
java.lang.InterruptedException
void stopAndFlush(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
java.lang.InterruptedException - if the current thread is interrupted
while waiting for the enqueued tasks to be finished.void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||