net.sf.jbaobab.thread
Class ExecutorPool

java.lang.Object
  extended by net.sf.jbaobab.thread.ExecutorPool

public final class ExecutorPool
extends Object

Provides static methods for sharing ExecutorService between different instances.

Author:
Oakyoon Cha

Method Summary
static ExecutorService getExecutor(Class clazz)
           
static ExecutorService getExecutor(String name)
           
static ExecutorService getRootExecutor()
           
static ExecutorService setExecutor(Class clazz, ExecutorService executor)
           
static ExecutorService setExecutor(String name, ExecutorService executor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRootExecutor

public static ExecutorService getRootExecutor()

getExecutor

public static ExecutorService getExecutor(String name)

getExecutor

public static ExecutorService getExecutor(Class clazz)

setExecutor

public static ExecutorService setExecutor(String name,
                                          ExecutorService executor)

setExecutor

public static ExecutorService setExecutor(Class clazz,
                                          ExecutorService executor)