Class WorkManagerThreadPool

  • All Implemented Interfaces:
    Executor, EventListener, javax.resource.spi.work.WorkListener, org.eclipse.jetty.util.thread.ThreadPool

    public class WorkManagerThreadPool
    extends CXFWorkAdapter
    implements org.eclipse.jetty.util.thread.ThreadPool
    The adapter for using Application Server's thread pool. Just simply override the dispatch method.
    • Constructor Detail

      • WorkManagerThreadPool

        public WorkManagerThreadPool​(javax.resource.spi.work.WorkManager wm)
    • Method Detail

      • dispatch

        public boolean dispatch​(Runnable job)
      • 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
      • workRejected

        public void workRejected​(javax.resource.spi.work.WorkEvent e)
        Specified by:
        workRejected in interface javax.resource.spi.work.WorkListener
        Overrides:
        workRejected in class CXFWorkAdapter