Class ConcurrentQueueImpl<V>
java.lang.Object
com.sun.xml.ws.transport.tcp.connectioncache.impl.concurrent.ConcurrentQueueImpl<V>
- All Implemented Interfaces:
ConcurrentQueue<V>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sun.xml.ws.transport.tcp.connectioncache.spi.concurrent.ConcurrentQueue
ConcurrentQueue.Handle<V> -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ConcurrentQueueImpl
public ConcurrentQueueImpl()
-
-
Method Details
-
size
public int size()Description copied from interface:ConcurrentQueueReturn the number of elements in the queue.- Specified by:
sizein interfaceConcurrentQueue<V>
-
offer
Add a new element to the tail of the queue. Returns a handle for the element in the queue.- Specified by:
offerin interfaceConcurrentQueue<V>
-
poll
Return an element from the head of the queue. The element is removed from the queue.- Specified by:
pollin interfaceConcurrentQueue<V>
-