Class ThreadPoolExecutorAdapter

  • All Implemented Interfaces:
    Executor, org.eclipse.jetty.util.component.LifeCycle, org.eclipse.jetty.util.thread.ThreadPool

    public class ThreadPoolExecutorAdapter
    extends Object
    implements org.eclipse.jetty.util.thread.ThreadPool, org.eclipse.jetty.util.component.LifeCycle
    Jetty ThreadPool that bridges requests to a ThreadPoolExecutor.
    • Constructor Detail

      • ThreadPoolExecutorAdapter

        public ThreadPoolExecutorAdapter​(ThreadPoolExecutor executor)
    • Method Detail

      • 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
      • isFailed

        public boolean isFailed()
        Specified by:
        isFailed in interface org.eclipse.jetty.util.component.LifeCycle
      • isRunning

        public boolean isRunning()
        Specified by:
        isRunning in interface org.eclipse.jetty.util.component.LifeCycle
      • isStarted

        public boolean isStarted()
        Specified by:
        isStarted in interface org.eclipse.jetty.util.component.LifeCycle
      • isStarting

        public boolean isStarting()
        Specified by:
        isStarting in interface org.eclipse.jetty.util.component.LifeCycle
      • isStopped

        public boolean isStopped()
        Specified by:
        isStopped in interface org.eclipse.jetty.util.component.LifeCycle
      • isStopping

        public boolean isStopping()
        Specified by:
        isStopping in interface org.eclipse.jetty.util.component.LifeCycle
      • start

        public void start()
                   throws Exception
        Specified by:
        start in interface org.eclipse.jetty.util.component.LifeCycle
        Throws:
        Exception
      • stop

        public void stop()
                  throws Exception
        Specified by:
        stop in interface org.eclipse.jetty.util.component.LifeCycle
        Throws:
        Exception
      • addLifeCycleListener

        public void addLifeCycleListener​(org.eclipse.jetty.util.component.LifeCycle.Listener listener)
        Specified by:
        addLifeCycleListener in interface org.eclipse.jetty.util.component.LifeCycle
      • removeLifeCycleListener

        public void removeLifeCycleListener​(org.eclipse.jetty.util.component.LifeCycle.Listener listener)
        Specified by:
        removeLifeCycleListener in interface org.eclipse.jetty.util.component.LifeCycle