org.jgroups.util
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() |
contains, isEmpty, iterator, offer, peek, poll, remove, size, toArray, toArray
addAll, clear, element, remove
containsAll, removeAll, retainAll, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAll, clear, containsAll, equals, hashCode, removeAll, retainAll
public 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 © 2018 JBoss, a division of Red Hat. All rights reserved.