public interface BackendQueueProcessor
| Modifier and Type | Interface and Description |
|---|---|
static interface |
BackendQueueProcessor.Transactional
Marker interface describing a backend processor that is transactional
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyStreamWork(LuceneWork singleOperation,
IndexingMonitor monitor)
Applies a single operation on the index, and different operations can be applied in parallel,
even in parallel to a workList instance being processed by
applyWork(List, IndexingMonitor) |
void |
applyWork(List<LuceneWork> workList,
IndexingMonitor monitor)
Applies a list of operations to the index.
|
void |
close()
Used to shutdown and eventually release resources.
|
default void |
initialize(Properties props,
WorkerBuildContext context,
IndexManager indexManager)
Deprecated.
Use a
Backend implementation and implement your initialization logic
in Backend.createQueueProcessor(IndexManager, WorkerBuildContext) instead. |
@Deprecated default void initialize(Properties props, WorkerBuildContext context, IndexManager indexManager)
Backend implementation and implement your initialization logic
in Backend.createQueueProcessor(IndexManager, WorkerBuildContext) instead.props - all configuration propertiescontext - context giving access to required meta dataindexManager - the index it is related to.void close()
void applyWork(List<LuceneWork> workList, IndexingMonitor monitor)
workList - list of Lucene work instance which need to be applied to the indexmonitor - a IndexingMonitor object.void applyStreamWork(LuceneWork singleOperation, IndexingMonitor monitor)
applyWork(List, IndexingMonitor)singleOperation - single Lucene work instance to be applied to the indexmonitor - a IndexingMonitor object.Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.