public class JGroupsBackendQueueProcessor extends Object implements BackendQueueProcessor
BackendQueueProcessor.Transactional
Constructor and Description |
---|
JGroupsBackendQueueProcessor(NodeSelectorStrategy selectionStrategy,
JGroupsBackendQueueTask jgroupsProcessor,
Supplier<BackendQueueProcessor> delegatedBackendFactory) |
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
BackendQueueProcessor.applyWork(List, IndexingMonitor) |
void |
applyWork(List<LuceneWork> workList,
IndexingMonitor monitor)
Applies a list of operations to the index.
|
boolean |
blocksForACK() |
void |
close()
Used to shutdown and eventually release resources.
|
BackendQueueProcessor |
getExistingDelegate() |
long |
getMessageTimeout() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize
public JGroupsBackendQueueProcessor(NodeSelectorStrategy selectionStrategy, JGroupsBackendQueueTask jgroupsProcessor, Supplier<BackendQueueProcessor> delegatedBackendFactory)
public void close()
BackendQueueProcessor
close
in interface BackendQueueProcessor
public void applyWork(List<LuceneWork> workList, IndexingMonitor monitor)
BackendQueueProcessor
applyWork
in interface BackendQueueProcessor
workList
- list of Lucene work instance which need to be applied to the indexmonitor
- a IndexingMonitor
object.public void applyStreamWork(LuceneWork singleOperation, IndexingMonitor monitor)
BackendQueueProcessor
BackendQueueProcessor.applyWork(List, IndexingMonitor)
applyStreamWork
in interface BackendQueueProcessor
singleOperation
- single Lucene work instance to be applied to the indexmonitor
- a IndexingMonitor
object.public boolean blocksForACK()
public BackendQueueProcessor getExistingDelegate()
public long getMessageTimeout()
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved