Groovy Documentation

gpars
Class ThreadLocalPools

java.lang.Object
  java.lang.ThreadLocal
      gpars.ThreadLocalPools

class ThreadLocalPools
extends ThreadLocal

Holds a thread-local stack of pools to allow for nested calls to ForkJoinPool.withPool() or GParsExecutorsPool.withPool()

author:
Vaclav Pech Date: Dec 15, 2009


Constructor Summary
ThreadLocalPools()

 
Method Summary
def getCurrent()

Gives the current element

protected List initialValue()

void leftShift(def pool)

Adds a new element

void pop()

Removes the top (last) element

 
Methods inherited from class ThreadLocal
get, remove, set, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

ThreadLocalPools

ThreadLocalPools()


 
Method Detail

getCurrent

public def getCurrent()
Gives the current element


initialValue

protected List initialValue()


leftShift

void leftShift(def pool)
Adds a new element


pop

void pop()
Removes the top (last) element


 

Groovy Documentation