Class InstrumentedQueuedThreadPool

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.util.thread.QueuedThreadPool
io.dropwizard.metrics.jetty11.InstrumentedQueuedThreadPool
All Implemented Interfaces:
Executor, ThreadFactory, org.eclipse.jetty.util.component.Container, org.eclipse.jetty.util.component.Destroyable, org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.util.component.Dumpable.DumpableContainer, org.eclipse.jetty.util.component.LifeCycle, org.eclipse.jetty.util.thread.ThreadPool, org.eclipse.jetty.util.thread.ThreadPool.SizedThreadPool, org.eclipse.jetty.util.thread.TryExecutor, org.eclipse.jetty.util.VirtualThreads.Configurable

public class InstrumentedQueuedThreadPool extends org.eclipse.jetty.util.thread.QueuedThreadPool
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopException

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container

    org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.Listener

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable

    org.eclipse.jetty.util.component.Dumpable.DumpableContainer

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle

    org.eclipse.jetty.util.component.LifeCycle.Listener

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.ThreadPool

    org.eclipse.jetty.util.thread.ThreadPool.SizedThreadPool

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.TryExecutor

    org.eclipse.jetty.util.thread.TryExecutor.NoTryExecutor
  • Field Summary

    Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    FAILED, STARTED, STARTING, STOPPED, STOPPING

    Fields inherited from interface org.eclipse.jetty.util.component.Dumpable

    KEY

    Fields inherited from interface org.eclipse.jetty.util.thread.TryExecutor

    NO_TRY
  • Constructor Summary

    Constructors
    Constructor
    Description
    InstrumentedQueuedThreadPool(com.codahale.metrics.MetricRegistry registry)
     
    InstrumentedQueuedThreadPool(com.codahale.metrics.MetricRegistry registry, int maxThreads)
     
    InstrumentedQueuedThreadPool(com.codahale.metrics.MetricRegistry registry, int maxThreads, int minThreads)
     
    InstrumentedQueuedThreadPool(com.codahale.metrics.MetricRegistry registry, int maxThreads, int minThreads, int idleTimeout)
     
    InstrumentedQueuedThreadPool(com.codahale.metrics.MetricRegistry registry, int maxThreads, int minThreads, int idleTimeout, int reservedThreads, BlockingQueue<Runnable> queue, ThreadGroup threadGroup)
     
    InstrumentedQueuedThreadPool(com.codahale.metrics.MetricRegistry registry, int maxThreads, int minThreads, int idleTimeout, int reservedThreads, BlockingQueue<Runnable> queue, ThreadGroup threadGroup, ThreadFactory threadFactory)
     
    InstrumentedQueuedThreadPool(com.codahale.metrics.MetricRegistry registry, int maxThreads, int minThreads, int idleTimeout, int reservedThreads, BlockingQueue<Runnable> queue, ThreadGroup threadGroup, ThreadFactory threadFactory, String prefix)
     
    InstrumentedQueuedThreadPool(com.codahale.metrics.MetricRegistry registry, int maxThreads, int minThreads, int idleTimeout, BlockingQueue<Runnable> queue)
     
    InstrumentedQueuedThreadPool(com.codahale.metrics.MetricRegistry registry, int maxThreads, int minThreads, int idleTimeout, BlockingQueue<Runnable> queue, String prefix)
     
    InstrumentedQueuedThreadPool(com.codahale.metrics.MetricRegistry registry, int maxThreads, int minThreads, int idleTimeout, BlockingQueue<Runnable> queue, ThreadGroup threadGroup)
     
    InstrumentedQueuedThreadPool(com.codahale.metrics.MetricRegistry registry, int maxThreads, int minThreads, int idleTimeout, BlockingQueue<Runnable> queue, ThreadFactory threadFactory)
     
    InstrumentedQueuedThreadPool(com.codahale.metrics.MetricRegistry registry, int maxThreads, int minThreads, BlockingQueue<Runnable> queue)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
     
     
    void
    setPrefix(String prefix)
     

    Methods inherited from class org.eclipse.jetty.util.thread.QueuedThreadPool

    dump, dumpThread, evict, execute, getAvailableReservedThreads, getBusyThreads, getIdleThreads, getIdleTimeout, getLeasedThreads, getLowThreadsThreshold, getMaxAvailableThreads, getMaxEvictCount, getMaxLeasedThreads, getMaxReservedThreads, getMaxThreads, getMinThreads, getName, getQueue, getQueueSize, getReadyThreads, getReservedThreads, getStopTimeout, getThreadPoolBudget, getThreads, getThreadsPriority, getUtilizationRate, getUtilizedThreads, getVirtualThreadsExecutor, interruptThread, isDaemon, isDetailedDump, isLowOnThreads, join, newThread, removeThread, runJob, setDaemon, setDetailedDump, setIdleTimeout, setLowThreadsThreshold, setMaxEvictCount, setMaxThreads, setMinThreads, setName, setReservedThreads, setStopTimeout, setThreadPoolBudget, setThreadsPriority, setVirtualThreadsExecutor, startThread, toString, tryExecute

    Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle

    addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeans

    Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.util.component.Container

    getCachedBeans, getEventListeners

    Methods inherited from interface org.eclipse.jetty.util.component.Dumpable

    dump, dumpSelf

    Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer

    isDumpable

    Methods inherited from interface org.eclipse.jetty.util.VirtualThreads.Configurable

    isUseVirtualThreads, setUseVirtualThreads
  • Constructor Details

    • InstrumentedQueuedThreadPool

      public InstrumentedQueuedThreadPool(@Name("registry") com.codahale.metrics.MetricRegistry registry)
    • InstrumentedQueuedThreadPool

      public InstrumentedQueuedThreadPool(@Name("registry") com.codahale.metrics.MetricRegistry registry, @Name("maxThreads") int maxThreads)
    • InstrumentedQueuedThreadPool

      public InstrumentedQueuedThreadPool(@Name("registry") com.codahale.metrics.MetricRegistry registry, @Name("maxThreads") int maxThreads, @Name("minThreads") int minThreads)
    • InstrumentedQueuedThreadPool

      public InstrumentedQueuedThreadPool(@Name("registry") com.codahale.metrics.MetricRegistry registry, @Name("maxThreads") int maxThreads, @Name("minThreads") int minThreads, @Name("queue") BlockingQueue<Runnable> queue)
    • InstrumentedQueuedThreadPool

      public InstrumentedQueuedThreadPool(@Name("registry") com.codahale.metrics.MetricRegistry registry, @Name("maxThreads") int maxThreads, @Name("minThreads") int minThreads, @Name("idleTimeout") int idleTimeout)
    • InstrumentedQueuedThreadPool

      public InstrumentedQueuedThreadPool(@Name("registry") com.codahale.metrics.MetricRegistry registry, @Name("maxThreads") int maxThreads, @Name("minThreads") int minThreads, @Name("idleTimeout") int idleTimeout, @Name("queue") BlockingQueue<Runnable> queue)
    • InstrumentedQueuedThreadPool

      public InstrumentedQueuedThreadPool(@Name("registry") com.codahale.metrics.MetricRegistry registry, @Name("maxThreads") int maxThreads, @Name("minThreads") int minThreads, @Name("idleTimeout") int idleTimeout, @Name("queue") BlockingQueue<Runnable> queue, @Name("prefix") String prefix)
    • InstrumentedQueuedThreadPool

      public InstrumentedQueuedThreadPool(@Name("registry") com.codahale.metrics.MetricRegistry registry, @Name("maxThreads") int maxThreads, @Name("minThreads") int minThreads, @Name("idleTimeout") int idleTimeout, @Name("queue") BlockingQueue<Runnable> queue, @Name("threadFactory") ThreadFactory threadFactory)
    • InstrumentedQueuedThreadPool

      public InstrumentedQueuedThreadPool(@Name("registry") com.codahale.metrics.MetricRegistry registry, @Name("maxThreads") int maxThreads, @Name("minThreads") int minThreads, @Name("idleTimeout") int idleTimeout, @Name("queue") BlockingQueue<Runnable> queue, @Name("threadGroup") ThreadGroup threadGroup)
    • InstrumentedQueuedThreadPool

      public InstrumentedQueuedThreadPool(@Name("registry") com.codahale.metrics.MetricRegistry registry, @Name("maxThreads") int maxThreads, @Name("minThreads") int minThreads, @Name("idleTimeout") int idleTimeout, @Name("reservedThreads") int reservedThreads, @Name("queue") BlockingQueue<Runnable> queue, @Name("threadGroup") ThreadGroup threadGroup)
    • InstrumentedQueuedThreadPool

      public InstrumentedQueuedThreadPool(@Name("registry") com.codahale.metrics.MetricRegistry registry, @Name("maxThreads") int maxThreads, @Name("minThreads") int minThreads, @Name("idleTimeout") int idleTimeout, @Name("reservedThreads") int reservedThreads, @Name("queue") BlockingQueue<Runnable> queue, @Name("threadGroup") ThreadGroup threadGroup, @Name("threadFactory") ThreadFactory threadFactory)
    • InstrumentedQueuedThreadPool

      public InstrumentedQueuedThreadPool(@Name("registry") com.codahale.metrics.MetricRegistry registry, @Name("maxThreads") int maxThreads, @Name("minThreads") int minThreads, @Name("idleTimeout") int idleTimeout, @Name("reservedThreads") int reservedThreads, @Name("queue") BlockingQueue<Runnable> queue, @Name("threadGroup") ThreadGroup threadGroup, @Name("threadFactory") ThreadFactory threadFactory, @Name("prefix") String prefix)
  • Method Details

    • getPrefix

      public String getPrefix()
    • setPrefix

      public void setPrefix(String prefix)
    • doStart

      protected void doStart() throws Exception
      Overrides:
      doStart in class org.eclipse.jetty.util.thread.QueuedThreadPool
      Throws:
      Exception
    • doStop

      protected void doStop() throws Exception
      Overrides:
      doStop in class org.eclipse.jetty.util.thread.QueuedThreadPool
      Throws:
      Exception