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.NamedCacheDequeBuilder
TheNamedCacheDequeBuilder
used to ensure a blocking queue is created from the concurrent session with the correct name suffix.static final String
The prefix use for queue cache names.static final String
The 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) protected static Session
session()
Return CoherenceSession
for 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 BUILDERTheNamedCacheDequeBuilder
used 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
NamedBlockingDeque
with 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
NamedBlockingQueue
with the specified name
-
session
Return CoherenceSession
for the Semaphore module.- Returns:
- Coherence
Session
for the Semaphore module
-
ensureQueue
-