Interface ScheduledThreadPoolConfig

All Superinterfaces:
Prototype.Api, Prototype.Factory<ScheduledThreadPoolSupplier>
All Known Implementing Classes:
ScheduledThreadPoolConfig.BuilderBase.ScheduledThreadPoolConfigImpl

public interface ScheduledThreadPoolConfig extends Prototype.Api
Interface generated from definition. Please add javadoc to the definition interface.
See Also:
  • Field Details

  • Method Details

    • builder

      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static ScheduledThreadPoolConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      static ScheduledThreadPoolConfig create()
      Create a new instance with default values.
      Returns:
      a new instance
    • virtualThreads

      boolean virtualThreads()
      When configured to true, an unbounded virtual executor service (project Loom) will be used.

      If enabled, all other configuration options of this executor service are ignored!

      Returns:
      whether to use virtual threads or not, defaults to false
    • corePoolSize

      int corePoolSize()
      Core pool size of the thread pool executor. Defaults to 16.
      Returns:
      corePoolSize see ThreadPoolExecutor.getCorePoolSize()
    • daemon

      boolean daemon()
      Is daemon of the thread pool executor. Defaults to true.
      Returns:
      whether the threads are daemon threads
    • threadNamePrefix

      String threadNamePrefix()
      Name prefix for threads in this thread pool executor. Defaults to "helidon-".
      Returns:
      prefix of a thread name
    • prestart

      boolean prestart()
      Whether to prestart core threads in this thread pool executor. Defaults to false.
      Returns:
      whether to prestart the threads