org.mortbay.jetty.j2sehttpspi
Class ThreadPoolExecutorAdapter
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.mortbay.jetty.j2sehttpspi.ThreadPoolExecutorAdapter
- All Implemented Interfaces:
- org.eclipse.jetty.util.component.LifeCycle, org.eclipse.jetty.util.thread.ThreadPool
public class ThreadPoolExecutorAdapter
- extends org.eclipse.jetty.util.component.AbstractLifeCycle
- implements org.eclipse.jetty.util.thread.ThreadPool
Jetty ThreadPool
that bridges requests to a ThreadPoolExecutor
.
- Author:
- lorban
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener |
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle |
org.eclipse.jetty.util.component.LifeCycle.Listener |
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING |
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
addLifeCycleListener, getState, removeLifeCycleListener, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadPoolExecutorAdapter
public ThreadPoolExecutorAdapter(java.util.concurrent.ThreadPoolExecutor executor)
dispatch
public boolean dispatch(java.lang.Runnable job)
- Specified by:
dispatch
in interface org.eclipse.jetty.util.thread.ThreadPool
getIdleThreads
public int getIdleThreads()
- Specified by:
getIdleThreads
in interface org.eclipse.jetty.util.thread.ThreadPool
getThreads
public int getThreads()
- Specified by:
getThreads
in interface org.eclipse.jetty.util.thread.ThreadPool
isLowOnThreads
public boolean isLowOnThreads()
- Specified by:
isLowOnThreads
in interface org.eclipse.jetty.util.thread.ThreadPool
join
public void join()
throws java.lang.InterruptedException
- Specified by:
join
in interface org.eclipse.jetty.util.thread.ThreadPool
- Throws:
java.lang.InterruptedException
isFailed
public boolean isFailed()
- Specified by:
isFailed
in interface org.eclipse.jetty.util.component.LifeCycle
- Overrides:
isFailed
in class org.eclipse.jetty.util.component.AbstractLifeCycle
isRunning
public boolean isRunning()
- Specified by:
isRunning
in interface org.eclipse.jetty.util.component.LifeCycle
- Overrides:
isRunning
in class org.eclipse.jetty.util.component.AbstractLifeCycle
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interface org.eclipse.jetty.util.component.LifeCycle
- Overrides:
isStarted
in class org.eclipse.jetty.util.component.AbstractLifeCycle
isStarting
public boolean isStarting()
- Specified by:
isStarting
in interface org.eclipse.jetty.util.component.LifeCycle
- Overrides:
isStarting
in class org.eclipse.jetty.util.component.AbstractLifeCycle
isStopped
public boolean isStopped()
- Specified by:
isStopped
in interface org.eclipse.jetty.util.component.LifeCycle
- Overrides:
isStopped
in class org.eclipse.jetty.util.component.AbstractLifeCycle
isStopping
public boolean isStopping()
- Specified by:
isStopping
in interface org.eclipse.jetty.util.component.LifeCycle
- Overrides:
isStopping
in class org.eclipse.jetty.util.component.AbstractLifeCycle
doStart
protected void doStart()
throws java.lang.Exception
- Overrides:
doStart
in class org.eclipse.jetty.util.component.AbstractLifeCycle
- Throws:
java.lang.Exception
doStop
protected void doStop()
throws java.lang.Exception
- Overrides:
doStop
in class org.eclipse.jetty.util.component.AbstractLifeCycle
- Throws:
java.lang.Exception
Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.