public class SharedThreadPool extends Object implements org.eclipse.jetty.util.thread.ThreadPool, org.eclipse.jetty.util.component.LifeCycle
ThreadPool that shares a single instance of a thread pool. The first thread pool
passed will win and be used.| Constructor and Description |
|---|
SharedThreadPool(org.eclipse.jetty.util.thread.ThreadPool threadPool) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLifeCycleListener(org.eclipse.jetty.util.component.LifeCycle.Listener listener) |
void |
execute(Runnable command) |
int |
getIdleThreads() |
int |
getThreads() |
boolean |
isFailed() |
boolean |
isLowOnThreads() |
boolean |
isRunning() |
boolean |
isStarted() |
boolean |
isStarting() |
boolean |
isStopped() |
boolean |
isStopping() |
void |
join() |
void |
removeLifeCycleListener(org.eclipse.jetty.util.component.LifeCycle.Listener listener) |
void |
start() |
void |
stop() |
String |
toString() |
public SharedThreadPool(org.eclipse.jetty.util.thread.ThreadPool threadPool)
public void join()
throws InterruptedException
join in interface org.eclipse.jetty.util.thread.ThreadPoolInterruptedExceptionpublic int getThreads()
getThreads in interface org.eclipse.jetty.util.thread.ThreadPoolpublic int getIdleThreads()
getIdleThreads in interface org.eclipse.jetty.util.thread.ThreadPoolpublic boolean isLowOnThreads()
isLowOnThreads in interface org.eclipse.jetty.util.thread.ThreadPoolpublic void start()
throws Exception
start in interface org.eclipse.jetty.util.component.LifeCycleExceptionpublic void stop()
throws Exception
stop in interface org.eclipse.jetty.util.component.LifeCycleExceptionpublic boolean isRunning()
isRunning in interface org.eclipse.jetty.util.component.LifeCyclepublic boolean isStarted()
isStarted in interface org.eclipse.jetty.util.component.LifeCyclepublic boolean isStarting()
isStarting in interface org.eclipse.jetty.util.component.LifeCyclepublic boolean isStopping()
isStopping in interface org.eclipse.jetty.util.component.LifeCyclepublic boolean isStopped()
isStopped in interface org.eclipse.jetty.util.component.LifeCyclepublic boolean isFailed()
isFailed in interface org.eclipse.jetty.util.component.LifeCyclepublic void addLifeCycleListener(org.eclipse.jetty.util.component.LifeCycle.Listener listener)
addLifeCycleListener in interface org.eclipse.jetty.util.component.LifeCyclepublic void removeLifeCycleListener(org.eclipse.jetty.util.component.LifeCycle.Listener listener)
removeLifeCycleListener in interface org.eclipse.jetty.util.component.LifeCycleCopyright © GigaSpaces.