Package io.micronaut.http.netty.channel
Interface EventLoopGroupConfiguration
- All Superinterfaces:
Named
- All Known Implementing Classes:
DefaultEventLoopGroupConfiguration
,NettyHttpServerConfiguration.EventLoopConfig
,NettyHttpServerConfiguration.Parent
,NettyHttpServerConfiguration.Worker
Default event loop group configuration interface.
- Since:
- 2.0
- Author:
- graemerocher
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of the default event loop group configuration.static final String
The default.static final long
The default shutdown quiet period in seconds.static final long
The default shutdown quiet period.static final String
The configuration property prefix. -
Method Summary
-
Field Details
-
EVENT_LOOPS
The configuration property prefix.- See Also:
-
DEFAULT
The name of the default event loop group configuration.- See Also:
-
DEFAULT_LOOP
The default.- See Also:
-
DEFAULT_SHUTDOWN_QUIET_PERIOD
static final long DEFAULT_SHUTDOWN_QUIET_PERIODThe default shutdown quiet period in seconds. Implementation note: defaults are from io.netty.util.concurrent.AbstractEventExecutor- See Also:
-
DEFAULT_SHUTDOWN_TIMEOUT
static final long DEFAULT_SHUTDOWN_TIMEOUTThe default shutdown quiet period. Implementation note: defaults are from io.netty.util.concurrent.AbstractEventExecutor- See Also:
-
-
Method Details
-
getNumThreads
int getNumThreads()- Returns:
- The number of threads for the event loop
-
getIoRatio
- Returns:
- The I/O ratio.
-
getExecutorName
- Returns:
- The name of the executor to use.
-
isPreferNativeTransport
boolean isPreferNativeTransport()- Returns:
- Whether to prefer the native transport
-
getShutdownQuietPeriod
- Returns:
- The shutdown quiet period
-
getShutdownTimeout
- Returns:
- The shutdown timeout (must be >= shutdownQuietPeriod)
-