Package io.netty.handler.flow
Class FlowControlHandler.RecyclableArrayDeque
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Object>,Collection<Object>,Deque<Object>,Queue<Object>,SequencedCollection<Object>
- Enclosing class:
FlowControlHandler
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 ObjectPool<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, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, forEach, getFirst, getLast, isEmpty, iterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, removeAll, removeFirst, removeFirstOccurrence, removeIf, removeLast, removeLastOccurrence, retainAll, size, spliterator, toArray, toArrayMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
containsAll, equals, hashCode, parallelStream, stream, toArray
-
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()
-