Package org.mockserver.collections
Class CircularConcurrentLinkedDeque<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.concurrent.ConcurrentLinkedDeque<E>
-
- org.mockserver.collections.CircularConcurrentLinkedDeque<E>
-
- All Implemented Interfaces:
Serializable,Iterable<E>,Collection<E>,Deque<E>,Queue<E>
public class CircularConcurrentLinkedDeque<E> extends ConcurrentLinkedDeque<E>
- Author:
- jamesdbloom
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CircularConcurrentLinkedDeque(int maxSize, Consumer<E> onEvictCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanadd(E element)booleanaddAll(Collection<? extends E> collection)voidclear()booleanoffer(E element)booleanremove(Object o)Deprecated.use removeItem insteadbooleanremoveItem(E e)voidsetMaxSize(int maxSize)-
Methods inherited from class java.util.concurrent.ConcurrentLinkedDeque
addFirst, addLast, contains, descendingIterator, element, forEach, getFirst, getLast, isEmpty, iterator, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, 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
-
setMaxSize
public void setMaxSize(int maxSize)
-
add
public boolean add(E element)
-
addAll
public boolean addAll(Collection<? extends E> collection)
- Specified by:
addAllin interfaceCollection<E>- Specified by:
addAllin interfaceDeque<E>- Overrides:
addAllin classConcurrentLinkedDeque<E>
-
offer
public boolean offer(E element)
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<E>- Overrides:
clearin classConcurrentLinkedDeque<E>
-
remove
@Deprecated public boolean remove(Object o)
Deprecated.use removeItem instead- Specified by:
removein interfaceCollection<E>- Specified by:
removein interfaceDeque<E>- Overrides:
removein classConcurrentLinkedDeque<E>
-
removeItem
public boolean removeItem(E e)
-
-