Class ContainerThreadPool

  • All Implemented Interfaces:
    com.yahoo.component.Component, java.lang.AutoCloseable, java.lang.Comparable<com.yahoo.component.Component>

    public class ContainerThreadPool
    extends com.yahoo.component.AbstractComponent
    implements java.lang.AutoCloseable
    A configurable thread pool. This provides the worker threads used for normal request processing.
    Author:
    Steinar Knutsen, baldersheim, bratseth, bjorncs
    • Field Summary

      • Fields inherited from class com.yahoo.component.AbstractComponent

        isDeconstructable
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void deconstruct()  
      java.util.concurrent.Executor executor()  
      • Methods inherited from class com.yahoo.component.AbstractComponent

        clone, compareTo, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable, toString
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ContainerThreadPool

        @Inject
        public ContainerThreadPool​(ThreadpoolConfig config,
                                   com.yahoo.jdisc.Metric metric)
    • Method Detail

      • executor

        public java.util.concurrent.Executor executor()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • deconstruct

        public void deconstruct()
        Overrides:
        deconstruct in class com.yahoo.component.AbstractComponent