Class DefaultEventLoopGroupConfiguration

java.lang.Object
io.micronaut.http.netty.channel.DefaultEventLoopGroupConfiguration
All Implemented Interfaces:
io.micronaut.core.naming.Named, EventLoopGroupConfiguration

@EachProperty(value="micronaut.netty.event-loops", primary="default") public class DefaultEventLoopGroupConfiguration extends Object implements EventLoopGroupConfiguration
Configuration interface for event loop configuration.
Since:
2.0
  • Constructor Details

    • DefaultEventLoopGroupConfiguration

      @ConfigurationInject public DefaultEventLoopGroupConfiguration(@Parameter String name, @Bindable(defaultValue="0") int numThreads, @Nullable @Nullable Integer ioRatio, @Bindable(defaultValue="false") boolean preferNativeTransport, @Nullable @Nullable String executor, @Nullable @Nullable Duration shutdownQuietPeriod, @Nullable @Nullable Duration shutdownTimeout)
      Default constructor.
      Parameters:
      name - The name of the group
      numThreads - The number of threads
      ioRatio - The IO ratio (optional)
      preferNativeTransport - Whether native transport is to be preferred
      executor - A named executor service to use (optional)
      shutdownQuietPeriod - The shutdown quiet period
      shutdownTimeout - The shutdown timeout (must be >= shutdownQuietPeriod)
    • DefaultEventLoopGroupConfiguration

      public DefaultEventLoopGroupConfiguration()
      Default constructor.
  • Method Details