Class FlowControlHandler.RecyclableArrayDeque
java.lang.Object
java.util.AbstractCollection<java.lang.Object>
java.util.ArrayDeque<java.lang.Object>
io.netty.handler.flow.FlowControlHandler.RecyclableArrayDeque
- All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<java.lang.Object>, java.util.Collection<java.lang.Object>, java.util.Deque<java.lang.Object>, java.util.Queue<java.lang.Object>
- Enclosing class:
FlowControlHandler
private static final class FlowControlHandler.RecyclableArrayDeque
extends java.util.ArrayDeque<java.lang.Object>
A recyclable
ArrayDeque.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intA value of2should be a good choice for most scenarios.private final ObjectPool.Handle<FlowControlHandler.RecyclableArrayDeque> private static final Recycler<FlowControlHandler.RecyclableArrayDeque> private static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRecyclableArrayDeque(int numElements, ObjectPool.Handle<FlowControlHandler.RecyclableArrayDeque> handle) -
Method Summary
Methods inherited from class java.util.ArrayDeque
add, addFirst, addLast, clear, clone, contains, descendingIterator, element, getFirst, getLast, isEmpty, iterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, size, spliterator, toArray, toArrayMethods inherited from class java.util.AbstractCollection
addAll, containsAll, removeAll, retainAll, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
addAll, containsAll, equals, hashCode, parallelStream, removeAll, removeIf, retainAll, streamMethods inherited from interface java.lang.Iterable
forEach
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
DEFAULT_NUM_ELEMENTS
private static final int DEFAULT_NUM_ELEMENTSA value of2should be a good choice for most scenarios.- See Also:
-
RECYCLER
-
handle
-
-
Constructor Details
-
RecyclableArrayDeque
private RecyclableArrayDeque(int numElements, ObjectPool.Handle<FlowControlHandler.RecyclableArrayDeque> handle)
-
-
Method Details
-
newInstance
-
recycle
public void recycle()
-