Class DefaultEventLoopGroupConfiguration

  • All Implemented Interfaces:
    io.micronaut.core.naming.Named, EventLoopGroupConfiguration

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

      • DefaultEventLoopGroupConfiguration

        @ConfigurationInject
        public DefaultEventLoopGroupConfiguration​(@Parameter
                                                  java.lang.String name,
                                                  @Bindable(defaultValue="0")
                                                  int numThreads,
                                                  @Nullable
                                                  java.lang.Integer ioRatio,
                                                  @Bindable(defaultValue="false")
                                                  boolean preferNativeTransport,
                                                  @Nullable
                                                  java.lang.String executor,
                                                  @Nullable
                                                  java.time.Duration shutdownQuietPeriod,
                                                  @Nullable
                                                  java.time.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.