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 int
A value of2
should 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
ConstructorsModifierConstructorDescriptionprivate
RecyclableArrayDeque
(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, toArray
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 of2
should 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()
-