FileDocCategorySizeDatePackage
ConcurrentQueue.javaAPI DocExample3552Tue May 29 16:57:06 BST 2007com.sun.xml.ws.transport.tcp.connectioncache.spi.concurrent

ConcurrentQueue

public interface ConcurrentQueue
A class that provides a very simply unbounded queue. The main requirement here is that the class support constant time (very fast) deletion of arbitrary elements. An instance of this class must be thread safe, either by locking or by using a wait-free algorithm (preferred). The interface is made as simple is possible to make it easier to produce a wait-free implementation.

Fields Summary
Constructors Summary
Methods Summary
public com.sun.xml.ws.transport.tcp.connectioncache.spi.concurrent.ConcurrentQueue$Handleoffer(V arg)
Add a new element to the tail of the queue. Returns a handle for the element in the queue.

public Vpoll()
Return an element from the head of the queue. The element is removed from the queue.

public intsize()
Return the number of elements in the queue.