org.apache.qpid.util
Class ConcurrentLinkedQueueAtomicSize<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
java.util.concurrent.ConcurrentLinkedQueue<E>
org.apache.qpid.util.ConcurrentLinkedQueueAtomicSize<E>
- All Implemented Interfaces:
- Serializable, Iterable<E>, Collection<E>, Queue<E>
- Direct Known Subclasses:
- ConcurrentLinkedMessageQueueAtomicSize
public class ConcurrentLinkedQueueAtomicSize<E>
- extends ConcurrentLinkedQueue<E>
- See Also:
- Serialized Form
_size
AtomicInteger _size
ConcurrentLinkedQueueAtomicSize
public ConcurrentLinkedQueueAtomicSize()
size
public int size()
- Specified by:
size
in interface Collection<E>
- Overrides:
size
in class ConcurrentLinkedQueue<E>
offer
public boolean offer(E o)
- Specified by:
offer
in interface Queue<E>
- Overrides:
offer
in class ConcurrentLinkedQueue<E>
poll
public E poll()
- Specified by:
poll
in interface Queue<E>
- Overrides:
poll
in class ConcurrentLinkedQueue<E>
remove
public boolean remove(Object o)
- Specified by:
remove
in interface Collection<E>
- Overrides:
remove
in class ConcurrentLinkedQueue<E>
Licensed to the Apache Software Foundation