public class BoundedList<T> extends ConcurrentLinkedQueue<T>
| Constructor and Description |
|---|
BoundedList() |
BoundedList(int size) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T obj)
Adds an element at the tail.
|
boolean |
addIfAbsent(T obj) |
T |
removeFromHead() |
addAll, contains, isEmpty, iterator, offer, peek, poll, remove, size, toArray, toArrayclear, element, removecontainsAll, removeAll, retainAll, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, containsAll, equals, hashCode, removeAll, retainAllpublic boolean add(T obj)
add in interface Collection<T>add in interface Queue<T>add in class ConcurrentLinkedQueue<T>obj - The object to be addedpublic boolean addIfAbsent(T obj)
public T removeFromHead()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.