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 boolean
add(E element)
boolean
addAll(Collection<? extends E> collection)
boolean
offer(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:
add
in interfaceCollection<E>
- Specified by:
add
in interfaceQueue<E>
- Overrides:
add
in classConcurrentLinkedQueue<E>
-
addAll
public boolean addAll(Collection<? extends E> collection)
- Specified by:
addAll
in interfaceCollection<E>
- Overrides:
addAll
in classConcurrentLinkedQueue<E>
-
-