Package io.micronaut.http.netty.channel
Interface EventLoopGroupConfiguration
-
- All Superinterfaces:
io.micronaut.core.naming.Named
- All Known Implementing Classes:
DefaultEventLoopGroupConfiguration
public interface EventLoopGroupConfiguration extends io.micronaut.core.naming.NamedDefault event loop group configuration interface.- Since:
- 2.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULTThe name of the default event loop group configuration.static java.lang.StringDEFAULT_LOOPThe default.static longDEFAULT_SHUTDOWN_QUIET_PERIODThe default shutdown quiet period in seconds.static longDEFAULT_SHUTDOWN_TIMEOUTThe default shutdown quiet period.static java.lang.StringEVENT_LOOPSThe configuration property prefix.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Optional<java.lang.String>getExecutorName()java.util.Optional<java.lang.Integer>getIoRatio()intgetNumThreads()default java.time.DurationgetShutdownQuietPeriod()default java.time.DurationgetShutdownTimeout()booleanisPreferNativeTransport()
-
-
-
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_LOOP
static final java.lang.String DEFAULT_LOOP
The default.- 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)
-
-