Holds a thread-local stack of pools to allow for nested calls to ForkJoinPool.withPool() or GParsExecutorsPool.withPool()
Constructor and description |
---|
ThreadLocalPools
() |
Type | Name and description |
---|---|
java.lang.Object |
getCurrent() Gives the current element |
protected java.util.LinkedList<java.lang.Object> |
initialValue() |
java.lang.Object |
isEmpty() Indicates whether the stack is empty |
void |
leftShift(java.lang.Object pool) Adds a new element |
void |
pop() Removes the top (last) element |
Methods inherited from class | Name |
---|---|
class java.lang.ThreadLocal |
java.lang.ThreadLocal#remove(), java.lang.ThreadLocal#get(), java.lang.ThreadLocal#set(java.lang.Object), java.lang.ThreadLocal#withInitial(java.util.function.Supplier), java.lang.ThreadLocal#wait(), java.lang.ThreadLocal#wait(long, int), java.lang.ThreadLocal#wait(long), java.lang.ThreadLocal#equals(java.lang.Object), java.lang.ThreadLocal#toString(), java.lang.ThreadLocal#hashCode(), java.lang.ThreadLocal#getClass(), java.lang.ThreadLocal#notify(), java.lang.ThreadLocal#notifyAll() |
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Gives the current element
Indicates whether the stack is empty
Adds a new element
pool
- The pool to storeRemoves the top (last) element
Copyright © 2008–2014 Václav Pech. All Rights Reserved.