Package org.mockserver.collections
Class BoundedConcurrentLinkedDeque<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.concurrent.ConcurrentLinkedDeque<E>
-
- org.mockserver.collections.BoundedConcurrentLinkedDeque<E>
-
- All Implemented Interfaces:
Serializable
,Iterable<E>
,Collection<E>
,Deque<E>
,Queue<E>
public class BoundedConcurrentLinkedDeque<E> extends ConcurrentLinkedDeque<E>
- Author:
- jamesdbloom
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BoundedConcurrentLinkedDeque(int maxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(E element)
boolean
addAll(Collection<? extends E> collection)
boolean
offer(E element)
-
Methods inherited from class java.util.concurrent.ConcurrentLinkedDeque
addFirst, addLast, clear, contains, descendingIterator, element, forEach, getFirst, getLast, isEmpty, iterator, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, removeAll, removeFirst, removeFirstOccurrence, removeIf, removeLast, removeLastOccurrence, retainAll, size, spliterator, toArray, toArray, toString
-
Methods inherited from class java.util.AbstractCollection
containsAll
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
containsAll, equals, hashCode, parallelStream, stream, toArray
-
-
-
-
Method Detail
-
add
public boolean add(E element)
-
addAll
public boolean addAll(Collection<? extends E> collection)
- Specified by:
addAll
in interfaceCollection<E>
- Specified by:
addAll
in interfaceDeque<E>
- Overrides:
addAll
in classConcurrentLinkedDeque<E>
-
-