Class ServerThreadPoolSupplier

java.lang.Object
io.helidon.common.configurable.ServerThreadPoolSupplier
All Implemented Interfaces:
Supplier<ExecutorService>

public final class ServerThreadPoolSupplier extends Object implements Supplier<ExecutorService>
Supplier of a custom thread pool with defaults appropriate for a thread-per-request server. The returned thread pool supports Context propagation.
  • Method Details

    • get

      public ExecutorService get()
      Specified by:
      get in interface Supplier<ExecutorService>
    • builder

      public static ThreadPoolConfig.Builder builder()
      Create a new fluent API builder to build a thread pool supplier.
      Returns:
      a builder instance
    • create

      public static ThreadPoolSupplier create()
      Create a new thread pool supplier with default configuration.
      Returns:
      a new thread pool supplier with default configuration
    • create

      public static ThreadPoolSupplier create(Config config)
      Create supplier from configuration.
      Parameters:
      config - config instance
      Returns:
      a new thread pool supplier configured from config