Class ModifiableThreadPoolConfig

java.lang.Object
org.apache.sling.commons.threads.ModifiableThreadPoolConfig
All Implemented Interfaces:
ThreadPoolConfig

@ProviderType public final class ModifiableThreadPoolConfig extends Object implements ThreadPoolConfig
This is a modifiable thread pool configuration that can be instantiated and then configured to create a new thread pool. The default values for this configuration are: - min pool size: 5 - max pool size: 5 - queue size: -1 - keep alive time: 60000 - block policy: RUN - shutdown graceful: true - shutdown wait time: -1 - priority: NORM - daemon: false - factory: null (= default jvm thread factory)
  • Field Details

    • PROPERTY_MIN_POOL_SIZE

      public static final String PROPERTY_MIN_POOL_SIZE
      Configuration property for the min pool size.
      See Also:
    • PROPERTY_MAX_POOL_SIZE

      public static final String PROPERTY_MAX_POOL_SIZE
      Configuration property for the max pool size.
      See Also:
    • PROPERTY_QUEUE_SIZE

      public static final String PROPERTY_QUEUE_SIZE
      Configuration property for the queue size.
      See Also:
    • PROPERTY_MAX_THREAD_AGE

      public static final String PROPERTY_MAX_THREAD_AGE
      Configuration property for the max thread age.
      See Also:
    • PROPERTY_KEEP_ALIVE_TIME

      public static final String PROPERTY_KEEP_ALIVE_TIME
      Configuration property for the keep alive time.
      See Also:
    • PROPERTY_BLOCK_POLICY

      public static final String PROPERTY_BLOCK_POLICY
      Configuration property for the block policy.
      See Also:
    • PROPERTY_SHUTDOWN_GRACEFUL

      public static final String PROPERTY_SHUTDOWN_GRACEFUL
      Configuration property for the shutdown graceful flag.
      See Also:
    • PROPERTY_SHUTDOWN_WAIT_TIME

      public static final String PROPERTY_SHUTDOWN_WAIT_TIME
      Configuration property for the shutdown wait time.
      See Also:
    • PROPERTY_PRIORITY

      public static final String PROPERTY_PRIORITY
      Configuration property for the priority.
      See Also:
    • PROPERTY_DAEMON

      public static final String PROPERTY_DAEMON
      Configuration property for the daemon flag.
      See Also:
    • PROPERTY_NAME

      public static final String PROPERTY_NAME
      Configuration property for the thread pool name.
      See Also:
  • Constructor Details

    • ModifiableThreadPoolConfig

      public ModifiableThreadPoolConfig()
      Create a new default configuration.
    • ModifiableThreadPoolConfig

      public ModifiableThreadPoolConfig(ThreadPoolConfig copy)
      Clone an existing configuration
      Parameters:
      copy - The config to clone
  • Method Details