Interface EventLoopGroupConfiguration

  • All Superinterfaces:
    io.micronaut.core.naming.Named
    All Known Implementing Classes:
    DefaultEventLoopGroupConfiguration

    public interface EventLoopGroupConfiguration
    extends io.micronaut.core.naming.Named
    Default event loop group configuration interface.
    Since:
    2.0
    • Field Detail

      • EVENT_LOOPS

        static final java.lang.String EVENT_LOOPS
        The configuration property prefix.
        See Also:
        Constant Field Values
      • DEFAULT

        static final java.lang.String DEFAULT
        The name of the default event loop group configuration.
        See Also:
        Constant Field Values
      • 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:
        Constant Field Values
      • 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:
        Constant Field Values
    • Method Detail

      • getNumThreads

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

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

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

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

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

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