public class LimitQueue<E> extends ConcurrentLinkedDeque<E>
Constructor and Description |
---|
LimitQueue(int limit) |
Modifier and Type | Method and Description |
---|---|
boolean |
full() |
boolean |
offerFirst(E s) |
boolean |
offerLast(E s) |
add, addAll, addFirst, addLast, clear, contains, descendingIterator, element, getFirst, getLast, isEmpty, iterator, offer, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, size, spliterator, toArray, toArray
containsAll, removeAll, retainAll, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode, parallelStream, removeAll, removeIf, retainAll, stream
public boolean offerFirst(E s)
offerFirst
in interface Deque<E>
offerFirst
in class ConcurrentLinkedDeque<E>
public boolean offerLast(E s)
public boolean full()
Copyright © 2017–2019. All rights reserved.