|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ThreadLocal<java.util.LinkedList<java.lang.Object>>
groovyx.gpars.ThreadLocalPools
final class ThreadLocalPools
Holds a thread-local stack of pools to allow for nested calls to ForkJoinPool.withPool() or GParsExecutorsPool.withPool()
| Constructor Summary | |
|---|---|
ThreadLocalPools()
|
|
| Method Summary | |
|---|---|
(package private) java.lang.Object |
getCurrent()
Gives the current element |
protected java.util.LinkedList<java.lang.Object> |
initialValue()
|
(package private) void |
leftShift(java.lang.Object pool)
Adds a new element |
(package private) void |
pop()
Removes the top (last) element |
| Methods inherited from class java.lang.ThreadLocal |
|---|
get, remove, set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ThreadLocalPools()
| Method Detail |
|---|
protected java.util.LinkedList<java.lang.Object> initialValue()
initialValue in class java.lang.ThreadLocal<java.util.LinkedList<java.lang.Object>>void leftShift(java.lang.Object pool)
pool - The pool to storevoid pop()
java.lang.Object getCurrent()
|
Copyright © 2008–2010 Václav Pech. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||