Package org.wildfly.common.function
Class ThreadLocalStack<E>
- java.lang.Object
-
- org.wildfly.common.function.ThreadLocalStack<E>
-
public class ThreadLocalStack<E> extends java.lang.ObjectA thread local stack data structure. In order to avoid memory churn the underlying ArrayDeque is never freed. If we remove the deque when it is empty then this results in excessive deque allocations.
-
-
Constructor Summary
Constructors Constructor Description ThreadLocalStack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEmpty()Epeek()Epop()voidpush(E item)
-