public class DelegatingThreadPool extends ContainerLifeCycle implements ThreadPool
AbstractLifeCycle.AbstractLifeCycleListenerThreadPool.SizedThreadPoolContainer.InheritedListener, Container.ListenerLifeCycle.Listener| Constructor and Description |
|---|
DelegatingThreadPool(Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStop() |
void |
execute(Runnable job) |
Executor |
getExecutor() |
int |
getIdleThreads() |
int |
getThreads() |
boolean |
isLowOnThreads() |
void |
join() |
void |
setExecutor(Executor executor) |
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic DelegatingThreadPool(Executor executor)
public Executor getExecutor()
public void setExecutor(Executor executor)
public int getIdleThreads()
getIdleThreads in interface ThreadPoolpublic int getThreads()
getThreads in interface ThreadPoolpublic boolean isLowOnThreads()
isLowOnThreads in interface ThreadPoolpublic void join()
throws InterruptedException
join in interface ThreadPoolInterruptedExceptionprotected void doStop()
throws Exception
doStop in class ContainerLifeCycleExceptionCopyright © 1995-2016 Webtide. All Rights Reserved.