Package org.jmxtrans.agent.util.collect
Class EvictingQueue<E>
java.lang.Object
org.jmxtrans.agent.util.collect.ForwardingCollection<E>
org.jmxtrans.agent.util.collect.ForwardingQueue<E>
org.jmxtrans.agent.util.collect.EvictingQueue<E>
- All Implemented Interfaces:
java.lang.Iterable<E>,java.util.Collection<E>,java.util.Queue<E>
public class EvictingQueue<E> extends ForwardingQueue<E> implements java.util.Queue<E>
- Author:
- Cyrille Le Clerc
-
Constructor Summary
Constructors Constructor Description EvictingQueue(int capacity) -
Method Summary
Methods inherited from class org.jmxtrans.agent.util.collect.ForwardingQueue
element, peek, poll, removeMethods inherited from class org.jmxtrans.agent.util.collect.ForwardingCollection
clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArrayMethods inherited from interface java.lang.Iterable
forEachMethods inherited from interface java.util.Queue
element, peek, poll, remove
-
Constructor Details
-
EvictingQueue
public EvictingQueue(int capacity)
-
-
Method Details
-
create
-
delegate
- Specified by:
delegatein classForwardingQueue<E>
-
add
- Specified by:
addin interfacejava.util.Collection<E>- Specified by:
addin interfacejava.util.Queue<E>- Overrides:
addin classForwardingQueue<E>
-
addAll
- Specified by:
addAllin interfacejava.util.Collection<E>- Overrides:
addAllin classForwardingCollection<E>
-
offer
- Specified by:
offerin interfacejava.util.Queue<E>- Overrides:
offerin classForwardingQueue<E>
-
addEvictingIfNeeded
-