| java.lang.Object org.apache.axis2.util.threadpool.ThreadPool
ThreadPool | public class ThreadPool implements ThreadFactory(Code) | | This the thread pool for axis2. This class will be used a singleton
across axis2 engine. ThreadPool is accepts AxisWorkers which has
run method on them and execute this method, using one of the threads
in the thread pool.
|
Method Summary | |
protected ThreadPoolExecutor | createDefaultExecutor(String name, int priority, boolean daemon) | public void | execute(Runnable worker) | public void | forceShutDown() A forceful shutdown mechanism for thread pool. | public Executor | getExecutor() | public void | safeShutDown() This is the recommended shutdown method for the thread pool
This will wait till all the workers that are already handed over to the
thread pool get executed. | public void | setExecutor(ThreadPoolExecutor executor) |
SLEEP_INTERVAL | protected static long SLEEP_INTERVAL(Code) | | |
executor | protected ThreadPoolExecutor executor(Code) | | |
ThreadPool | public ThreadPool()(Code) | | |
ThreadPool | public ThreadPool(int corePoolSize, int maxPoolSize)(Code) | | |
createDefaultExecutor | protected ThreadPoolExecutor createDefaultExecutor(String name, int priority, boolean daemon)(Code) | | |
forceShutDown | public void forceShutDown()(Code) | | A forceful shutdown mechanism for thread pool.
|
getExecutor | public Executor getExecutor()(Code) | | |
safeShutDown | public void safeShutDown() throws AxisFault(Code) | | This is the recommended shutdown method for the thread pool
This will wait till all the workers that are already handed over to the
thread pool get executed.
throws: org.apache.axis2.AxisFault - |
setExecutor | public void setExecutor(ThreadPoolExecutor executor)(Code) | | |
|
|