Interface ThreadPoolConfig<T extends ThreadPoolConfig<T>>

All Known Subinterfaces:
EventLoopGroupConfig

public interface ThreadPoolConfig<T extends ThreadPoolConfig<T>>
Configuration interface for thread pool settings.
  • Method Summary

    Modifier and Type
    Method
    Description
    daemon(boolean daemon)
    Sets whether the threads should be daemon threads.
    name(String name)
    Sets the name of the thread pool.
    numberOfThreads(int numberOfThreads)
    Sets the number of threads in the thread pool.
  • Method Details

    • name

      T name(String name)
      Sets the name of the thread pool.
      Parameters:
      name - the name to set for the thread pool
      Returns:
      this config instance for method chaining
    • numberOfThreads

      T numberOfThreads(int numberOfThreads)
      Sets the number of threads in the thread pool.
      Parameters:
      numberOfThreads - the number of threads to use
      Returns:
      this config instance for method chaining
    • daemon

      T daemon(boolean daemon)
      Sets whether the threads should be daemon threads.
      Parameters:
      daemon - true if the threads should be daemon threads, false otherwise
      Returns:
      this config instance for method chaining