Class FlowControlHandler.RecyclableArrayDeque
- All Implemented Interfaces:
Serializable, Cloneable, Iterable<Object>, Collection<Object>, Deque<Object>, Queue<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 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 AbstractCollection
addAll, containsAll, removeAll, retainAll, toStringMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Collection
addAll, containsAll, equals, hashCode, parallelStream, removeAll, removeIf, retainAll, stream
-
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()
-