Package org.mockserver.collections
Class BoundedConcurrentLinkedQueue<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractQueue<E>
-
- java.util.concurrent.ConcurrentLinkedQueue<E>
-
- org.mockserver.collections.BoundedConcurrentLinkedQueue<E>
-
- All Implemented Interfaces:
Serializable,Iterable<E>,Collection<E>,Queue<E>
public class BoundedConcurrentLinkedQueue<E> extends ConcurrentLinkedQueue<E>
- Author:
- jamesdbloom
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BoundedConcurrentLinkedQueue(int maxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(E element)booleanaddAll(Collection<? extends E> collection)booleanoffer(E element)-
Methods inherited from class java.util.concurrent.ConcurrentLinkedQueue
clear, contains, forEach, isEmpty, iterator, peek, poll, remove, removeAll, removeIf, retainAll, size, spliterator, toArray, toArray, toString
-
Methods inherited from class java.util.AbstractQueue
element, remove
-
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)
- Specified by:
addin interfaceCollection<E>- Specified by:
addin interfaceQueue<E>- Overrides:
addin classConcurrentLinkedQueue<E>
-
addAll
public boolean addAll(Collection<? extends E> collection)
- Specified by:
addAllin interfaceCollection<E>- Overrides:
addAllin classConcurrentLinkedQueue<E>
-
-