Interface ThreadPool

All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.config.types.PropertyBag

public interface ThreadPool extends org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.config.types.PropertyBag
  • Field Details

  • Method Details

    • getClassname

      String getClassname()
      The classname of a thread pool implementation
    • setClassname

      void setClassname(String value)
    • getIdleThreadTimeoutSeconds

      String getIdleThreadTimeoutSeconds()
      Idle threads are removed from pool, after this time (in seconds)
    • setIdleThreadTimeoutSeconds

      void setIdleThreadTimeoutSeconds(String value)
    • getMaxQueueSize

      String getMaxQueueSize()
      The maxim number of tasks, which could be queued on the thread pool. -1 disables any maximum checks.
    • setMaxQueueSize

      void setMaxQueueSize(String value)
    • getMaxThreadPoolSize

      String getMaxThreadPoolSize()
      Maximum number of threads in the thread pool servicing requests in this queue. This is the upper bound on the no. of threads that exist in the thread pool.
    • setMaxThreadPoolSize

      void setMaxThreadPoolSize(String value) throws PropertyVetoException
      Throws:
      PropertyVetoException
    • getMinThreadPoolSize

      String getMinThreadPoolSize()
      Minimum number of threads in the thread pool servicing requests in this queue. These are created up front when this thread pool is instantiated
    • setMinThreadPoolSize

      void setMinThreadPoolSize(String value)
    • getName

      String getName()
      This is an id for the work-queue e.g. "thread-pool-1", "thread-pool-2" etc
    • setName

      void setName(String value)
    • getThreadPoolId

      @Deprecated String getThreadPoolId()
      Deprecated.
      This is an id for the work-queue e.g. "thread-pool-1", "thread-pool-2" etc
    • setThreadPoolId

      void setThreadPoolId(String value)
    • findNetworkListeners

      @DuckTyped List<NetworkListener> findNetworkListeners()