org.apache.qpid.util
Class ConcurrentLinkedQueueAtomicSize<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractQueue<E>
          extended by java.util.concurrent.ConcurrentLinkedQueue<E>
              extended by org.apache.qpid.util.ConcurrentLinkedQueueAtomicSize<E>
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.Queue<E>

public class ConcurrentLinkedQueueAtomicSize<E>
extends java.util.concurrent.ConcurrentLinkedQueue<E>

See Also:
Serialized Form

Constructor Summary
ConcurrentLinkedQueueAtomicSize()
           
 
Method Summary
 boolean offer(E o)
           
 E poll()
           
 int size()
           
 
Methods inherited from class java.util.concurrent.ConcurrentLinkedQueue
add, contains, isEmpty, iterator, peek, remove, toArray, toArray
 
Methods inherited from class java.util.AbstractQueue
addAll, clear, element, remove
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Queue
element, remove
 
Methods inherited from interface java.util.Collection
addAll, clear, containsAll, equals, hashCode, removeAll, retainAll
 

Constructor Detail

ConcurrentLinkedQueueAtomicSize

public ConcurrentLinkedQueueAtomicSize()
Method Detail

size

public int size()
Specified by:
size in interface java.util.Collection<E>
Overrides:
size in class java.util.concurrent.ConcurrentLinkedQueue<E>

offer

public boolean offer(E o)
Specified by:
offer in interface java.util.Queue<E>
Overrides:
offer in class java.util.concurrent.ConcurrentLinkedQueue<E>

poll

public E poll()
Specified by:
poll in interface java.util.Queue<E>
Overrides:
poll in class java.util.concurrent.ConcurrentLinkedQueue<E>