Package com.oracle.coherence.concurrent
Class Queues
java.lang.Object
com.oracle.coherence.concurrent.Queues
A factory to obtain named blocking queues.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.tangosol.internal.net.queue.NamedCacheDequeBuilderTheNamedCacheDequeBuilderused to ensure a blocking queue is created from the concurrent session with the correct name suffix.static final StringThe prefix use for queue cache names.static final StringThe session name. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <E> NamedBlockingQueue<E> Return aNamedBlockingQueue.static <E> NamedBlockingDeque<E> blockingDeque(String sName) Return aNamedBlockingDeque.protected static <E> NamedBlockingDeque<E> ensureQueue(String sName) Ensure aNamedBlockingQueue.protected static Sessionsession()Return CoherenceSessionfor the Semaphore module.
-
Field Details
-
QUEUE_CACHE_PREFIX
The prefix use for queue cache names.- See Also:
-
SESSION_NAME
The session name. -
BUILDER
public static final com.tangosol.internal.net.queue.NamedCacheDequeBuilder BUILDERTheNamedCacheDequeBuilderused to ensure a blocking queue is created from the concurrent session with the correct name suffix.
-
-
Constructor Details
-
Queues
public Queues()
-
-
Method Details
-
blockingDeque
Return aNamedBlockingDeque.- Type Parameters:
E- the type of element in the queue- Parameters:
sName- the name of the queue to return- Returns:
- a
NamedBlockingDequewith the specified name
-
blocking
Return aNamedBlockingQueue.- Type Parameters:
E- the type of element in the queue- Parameters:
sName- the name of the queue to return- Returns:
- a
NamedBlockingQueuewith the specified name
-
session
Return CoherenceSessionfor the Semaphore module.- Returns:
- Coherence
Sessionfor the Semaphore module
-
ensureQueue
Ensure aNamedBlockingQueue.- Type Parameters:
E- the element type of the queue- Parameters:
sName- the queue name; ifnullor empty, the default queue will be returned- Returns:
- the queue for the given name
-