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, @Bindable(defaultValue="1.0") double threadCoreRatio, @Nullable @Nullable Integer ioRatio, @Bindable(defaultValue="false") boolean preferNativeTransport, @Nullable @Nullable String executor, @Nullable @Nullable Duration shutdownQuietPeriod, @Nullable @Nullable Duration shutdownTimeout, @Bindable(defaultValue="false") boolean loomCarrier)
      Default constructor.
      Parameters:
      name - The name of the group
      numThreads - The number of threads
      threadCoreRatio - The number of threads per core to use if getNumThreads() is set to 0.
      ioRatio - The IO ratio (optional)
      preferNativeTransport - Whether native transport is to be preferred
      executor - A named executor service to use for event loop threads (optional). This property is very specialized. In particular, it will not solve read timeouts or fix blocking operations on the event loop, in fact it may do the opposite. Don't use unless you really know what this does.
      shutdownQuietPeriod - The shutdown quiet period
      shutdownTimeout - The shutdown timeout (must be >= shutdownQuietPeriod)
      loomCarrier - When set to true, use a special experimental event loop that can also execute virtual threads, in order to improve virtual thread performance.
    • DefaultEventLoopGroupConfiguration

      @Deprecated public DefaultEventLoopGroupConfiguration(String name, int numThreads, Integer ioRatio, boolean preferNativeTransport, String executor, Duration shutdownQuietPeriod, Duration shutdownTimeout)
      Deprecated.
    • DefaultEventLoopGroupConfiguration

      public DefaultEventLoopGroupConfiguration()
      Default constructor.
  • Method Details