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 voiddestroyQueueInternal(ReindexQueue<?> queue) Takes the necessary steps to remove or destroy the Queue, if necessary.final booleanIndicates if this component is designed for use across JVMs.Methods inherited from class com.broadleafcommerce.search.index.core.queue.AbstractQueueProvider
destroyQueue, getOrCreateQueue, getQueueRegistry, getQueueSizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:AbstractQueueProviderCreate a new queue for the givenIndexableType.- Specified by:
createQueuein 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:AbstractQueueProviderTakes 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:
destroyQueueInternalin classAbstractQueueProvider- Parameters:
queue- the queue to be destroyed
-
isDistributed
public final boolean isDistributed()Description copied from interface:DistributableIndicates if this component is designed for use across JVMs.- Specified by:
isDistributedin interfaceDistributable- Returns:
- whether this component can be distributed across JVMs
-