java.util.concurrent.Executor, Container, Destroyable, Dumpable, LifeCycle, ThreadPoolpublic class DelegatingThreadPool extends ContainerLifeCycle implements ThreadPool
AbstractLifeCycle.AbstractLifeCycleListenerContainer.InheritedListener, Container.ListenerLifeCycle.ListenerThreadPool.SizedThreadPoolFAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING| Constructor | Description |
|---|---|
DelegatingThreadPool(java.util.concurrent.Executor executor) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
doStop() |
|
void |
execute(java.lang.Runnable job) |
|
java.util.concurrent.Executor |
getExecutor() |
|
int |
getIdleThreads() |
|
int |
getThreads() |
|
boolean |
isLowOnThreads() |
|
void |
join() |
|
void |
setExecutor(java.util.concurrent.Executor executor) |
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopaddBean, addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeanspublic DelegatingThreadPool(java.util.concurrent.Executor executor)
public java.util.concurrent.Executor getExecutor()
public void setExecutor(java.util.concurrent.Executor executor)
public void execute(java.lang.Runnable job)
execute in interface java.util.concurrent.Executorpublic int getIdleThreads()
getIdleThreads in interface ThreadPoolpublic int getThreads()
getThreads in interface ThreadPoolpublic boolean isLowOnThreads()
isLowOnThreads in interface ThreadPoolpublic void join()
throws java.lang.InterruptedException
join in interface ThreadPooljava.lang.InterruptedExceptionprotected void doStop()
throws java.lang.Exception
doStop in class ContainerLifeCyclejava.lang.ExceptionCopyright © 1995–2018 Webtide. All rights reserved.