|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BatchBackend
Implementations of this interface are not drop-in replacements for the standard BackendQueueProcessor, 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 |
doWorkInSync(LuceneWork work)
Does one work in sync |
void |
enqueueAsyncWork(LuceneWork work)
Enqueues one work to be processed asynchronously |
void |
flush(Set<Class<?>> indexedRootTypes)
Since most work is done async in the backend, we need to flush at the end to make sure we don't return control before all work was processed, and that IndexWriters are committed or closed. |
void |
optimize(Set<Class<?>> targetedClasses)
Triggers optimization of all indexes containing at least one instance of the listed targetedClasses. |
Method Detail |
---|
void enqueueAsyncWork(LuceneWork work) throws InterruptedException
work
-
InterruptedException
- if the current thread is interrupted while
waiting for the work queue to have enough space.void doWorkInSync(LuceneWork work)
work
-
InterruptedException
void flush(Set<Class<?>> indexedRootTypes)
indexedRootType
- flushes all indexes containing entities of this typevoid optimize(Set<Class<?>> targetedClasses)
targetedClasses
- Used to specify which indexes need optimization.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |