Class DefaultLocalQueueProvider
java.lang.Object
com.broadleafcommerce.search.index.core.queue.AbstractQueueProvider
com.broadleafcommerce.search.index.core.queue.DefaultLocalQueueProvider
- All Implemented Interfaces:
Distributable
,QueueProvider
A local QueueProvider that uses a
DefaultLocalArrayBlockingDelegatingQueue
.- Author:
- Kelly Tisdell (ktisdell)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> ReindexQueue<T>
createQueue
(com.broadleafcommerce.search.api.type.IndexableType type) Create a new queue for the givenIndexableType
.protected void
destroyQueueInternal
(ReindexQueue<?> queue) Takes the necessary steps to remove or destroy the Queue, if necessary.final boolean
Indicates if this component is designed for use across JVMs.Methods inherited from class com.broadleafcommerce.search.index.core.queue.AbstractQueueProvider
destroyQueue, getOrCreateQueue, getQueueRegistry, getQueueSize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.search.index.core.queue.QueueProvider
destroyQueue, getOrCreateQueue
-
Constructor Details
-
DefaultLocalQueueProvider
public DefaultLocalQueueProvider(int defaultMaxQueueSize)
-
-
Method Details
-
createQueue
Description copied from class:AbstractQueueProvider
Create a new queue for the givenIndexableType
.- Specified by:
createQueue
in classAbstractQueueProvider
- Type Parameters:
T
- the type of object the queue will hold- Parameters:
type
- the type to create a queue for- Returns:
- a new queue for the indexable type
-
destroyQueueInternal
Description copied from class:AbstractQueueProvider
Takes the necessary steps to remove or destroy the Queue, if necessary. Otherwise, this will be a pass-through (e.g. when the Queue is in-memory and has no cleanup requirements).- Specified by:
destroyQueueInternal
in classAbstractQueueProvider
- Parameters:
queue
- the queue to be destroyed
-
isDistributed
public final boolean isDistributed()Description copied from interface:Distributable
Indicates if this component is designed for use across JVMs.- Specified by:
isDistributed
in interfaceDistributable
- Returns:
- whether this component can be distributed across JVMs
-