public class ThreadPoolExecutorAdapter
extends org.eclipse.jetty.util.component.AbstractLifeCycle
implements org.eclipse.jetty.util.thread.ThreadPool
ThreadPool that bridges requests to a ThreadPoolExecutor.org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener| Constructor and Description |
|---|
ThreadPoolExecutorAdapter(ThreadPoolExecutor executor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dispatch(Runnable job) |
protected void |
doStart() |
protected void |
doStop() |
int |
getIdleThreads() |
int |
getThreads() |
boolean |
isFailed() |
boolean |
isLowOnThreads() |
boolean |
isRunning() |
boolean |
isStarted() |
boolean |
isStarting() |
boolean |
isStopped() |
boolean |
isStopping() |
void |
join() |
public ThreadPoolExecutorAdapter(ThreadPoolExecutor executor)
public boolean dispatch(Runnable job)
dispatch in interface org.eclipse.jetty.util.thread.ThreadPoolpublic int getIdleThreads()
getIdleThreads in interface org.eclipse.jetty.util.thread.ThreadPoolpublic int getThreads()
getThreads in interface org.eclipse.jetty.util.thread.ThreadPoolpublic boolean isLowOnThreads()
isLowOnThreads in interface org.eclipse.jetty.util.thread.ThreadPoolpublic void join()
throws InterruptedException
join in interface org.eclipse.jetty.util.thread.ThreadPoolInterruptedExceptionpublic boolean isFailed()
isFailed in interface org.eclipse.jetty.util.component.LifeCycleisFailed in class org.eclipse.jetty.util.component.AbstractLifeCyclepublic boolean isRunning()
isRunning in interface org.eclipse.jetty.util.component.LifeCycleisRunning in class org.eclipse.jetty.util.component.AbstractLifeCyclepublic boolean isStarted()
isStarted in interface org.eclipse.jetty.util.component.LifeCycleisStarted in class org.eclipse.jetty.util.component.AbstractLifeCyclepublic boolean isStarting()
isStarting in interface org.eclipse.jetty.util.component.LifeCycleisStarting in class org.eclipse.jetty.util.component.AbstractLifeCyclepublic boolean isStopped()
isStopped in interface org.eclipse.jetty.util.component.LifeCycleisStopped in class org.eclipse.jetty.util.component.AbstractLifeCyclepublic boolean isStopping()
isStopping in interface org.eclipse.jetty.util.component.LifeCycleisStopping in class org.eclipse.jetty.util.component.AbstractLifeCycleprotected void doStart()
throws Exception
doStart in class org.eclipse.jetty.util.component.AbstractLifeCycleExceptionCopyright © 1995-2016 Mort Bay Consulting. All Rights Reserved.