Interface EventLoopGroupConfiguration

All Superinterfaces:
Named
All Known Implementing Classes:
DefaultEventLoopGroupConfiguration, NettyHttpServerConfiguration.EventLoopConfig, NettyHttpServerConfiguration.Parent, NettyHttpServerConfiguration.Worker

public interface EventLoopGroupConfiguration extends Named
Default event loop group configuration interface.
Since:
2.0
Author:
graemerocher
  • Field Details

    • EVENT_LOOPS

      static final String EVENT_LOOPS
      The configuration property prefix.
      See Also:
    • DEFAULT

      static final String DEFAULT
      The name of the default event loop group configuration.
      See Also:
    • DEFAULT_LOOP

      static final String DEFAULT_LOOP
      The default.
      See Also:
    • DEFAULT_SHUTDOWN_QUIET_PERIOD

      static final long DEFAULT_SHUTDOWN_QUIET_PERIOD
      The default shutdown quiet period in seconds. Implementation note: defaults are from io.netty.util.concurrent.AbstractEventExecutor
      See Also:
    • DEFAULT_SHUTDOWN_TIMEOUT

      static final long DEFAULT_SHUTDOWN_TIMEOUT
      The default shutdown quiet period. Implementation note: defaults are from io.netty.util.concurrent.AbstractEventExecutor
      See Also:
  • Method Details

    • getNumThreads

      int getNumThreads()
      Returns:
      The number of threads for the event loop
    • getIoRatio

      Optional<Integer> getIoRatio()
      Returns:
      The I/O ratio.
    • getExecutorName

      Optional<String> getExecutorName()
      Returns:
      The name of the executor to use.
    • isPreferNativeTransport

      boolean isPreferNativeTransport()
      Returns:
      Whether to prefer the native transport
    • getShutdownQuietPeriod

      default Duration getShutdownQuietPeriod()
      Returns:
      The shutdown quiet period
    • getShutdownTimeout

      default Duration getShutdownTimeout()
      Returns:
      The shutdown timeout (must be >= shutdownQuietPeriod)