Package io.netty.handler.flow
Class FlowControlHandler.RecyclableArrayDeque
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- 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 recyclableArrayDeque
.
-
-
Field Summary
Fields Modifier and Type Field Description private static int
DEFAULT_NUM_ELEMENTS
A value of2
should be a good choice for most scenarios.private ObjectPool.Handle<FlowControlHandler.RecyclableArrayDeque>
handle
private static ObjectPool<FlowControlHandler.RecyclableArrayDeque>
RECYCLER
private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description private
RecyclableArrayDeque(int numElements, ObjectPool.Handle<FlowControlHandler.RecyclableArrayDeque> handle)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FlowControlHandler.RecyclableArrayDeque
newInstance()
void
recycle()
-
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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
DEFAULT_NUM_ELEMENTS
private static final int DEFAULT_NUM_ELEMENTS
A value of2
should be a good choice for most scenarios.- See Also:
- Constant Field Values
-
RECYCLER
private static final ObjectPool<FlowControlHandler.RecyclableArrayDeque> RECYCLER
-
handle
private final ObjectPool.Handle<FlowControlHandler.RecyclableArrayDeque> handle
-
-
Constructor Detail
-
RecyclableArrayDeque
private RecyclableArrayDeque(int numElements, ObjectPool.Handle<FlowControlHandler.RecyclableArrayDeque> handle)
-
-
Method Detail
-
newInstance
public static FlowControlHandler.RecyclableArrayDeque newInstance()
-
recycle
public void recycle()
-
-