T - the type of objects held in this ConcurrentCollectionpublic class ConcurrentLinkedQueueCollection<T> extends Object implements ConcurrentCollection<T>
ConcurrentLinkedQueue based implementation of ConcurrentCollection.| Constructor and Description |
|---|
ConcurrentLinkedQueueCollection() |
| Modifier and Type | Method and Description |
|---|---|
void |
offerFirst(T object)
Adds the given
object at the head of the ConcurrentCollection. |
void |
offerLast(T object)
Adds the given
object at the tail of the ConcurrentCollection. |
T |
pollFirst()
Polls an
object from the head of the ConcurrentCollection. |
T |
pollLast()
Polls an
object from the tail of the ConcurrentCollection. |
public void offerFirst(T object)
ConcurrentCollectionobject at the head of the ConcurrentCollection.offerFirst in interface ConcurrentCollection<T>object - the given objectpublic void offerLast(T object)
ConcurrentCollectionobject at the tail of the ConcurrentCollection.offerLast in interface ConcurrentCollection<T>object - the given objectpublic T pollFirst()
ConcurrentCollectionobject from the head of the ConcurrentCollection.pollFirst in interface ConcurrentCollection<T>null otherwisepublic T pollLast()
ConcurrentCollectionobject from the tail of the ConcurrentCollection.pollLast in interface ConcurrentCollection<T>null otherwiseCopyright © 2013-2019 vibur.org. All Rights Reserved.