public interface SolrIndexQueueProvider
Queue to hold a series of commands to be executed in sequence. This also provides a
Lock so that only one thread can execute commands at any given time.
Note that it's safer to use a distributed Queue and a distributed Lock so that multiple nodes (JVMs) can't simultaneously
execute commands, potentially overriding or corrupting each other. A local Queue and a local Lock are satisfactory
if users can guarantee that only a single node (JVM) will ever update Solr or receive events (e.g. from the admin) to update Solr.| Modifier and Type | Field and Description |
|---|---|
static String |
COMMAND_LOCK_NAME |
static String |
COMMAND_QUEUE_NAME |
| Modifier and Type | Method and Description |
|---|---|
Lock |
createOrRetrieveCommandLock(String lockName) |
BlockingQueue<? super SolrUpdateCommand> |
createOrRetrieveCommandQueue(String queueName) |
boolean |
isDistributed() |
static final String COMMAND_LOCK_NAME
static final String COMMAND_QUEUE_NAME
BlockingQueue<? super SolrUpdateCommand> createOrRetrieveCommandQueue(String queueName)
boolean isDistributed()
Copyright © 2026. All rights reserved.