public abstract static class NettyHttpServerConfiguration.EventLoopConfig
extends java.lang.Object
implements io.micronaut.http.netty.channel.EventLoopGroupConfiguration
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.lang.String> |
getExecutorName() |
java.util.Optional<java.lang.Integer> |
getIoRatio() |
java.lang.String |
getName() |
int |
getNumOfThreads() |
int |
getNumThreads() |
java.time.Duration |
getShutdownQuietPeriod() |
java.time.Duration |
getShutdownTimeout() |
boolean |
isPreferNativeTransport() |
void |
setEventLoopGroup(java.lang.String name)
Sets the name to use.
|
void |
setExecutor(java.lang.String executor)
Sets the name of the executor.
|
void |
setIoRatio(java.lang.Integer ioRatio)
Sets the I/O ratio.
|
void |
setPreferNativeTransport(boolean preferNativeTransport) |
void |
setShutdownQuietPeriod(java.time.Duration shutdownQuietPeriod) |
void |
setShutdownTimeout(java.time.Duration shutdownTimeout) |
void |
setThreads(int threads)
Sets the number of threads for the event loop group.
|
@NonNull public java.lang.String getName()
getName in interface io.micronaut.core.naming.Namedpublic void setEventLoopGroup(java.lang.String name)
name - The namepublic void setThreads(int threads)
threads - The number of threadspublic void setIoRatio(java.lang.Integer ioRatio)
ioRatio - The I/O ratiopublic void setExecutor(java.lang.String executor)
executor - The executorpublic void setPreferNativeTransport(boolean preferNativeTransport)
preferNativeTransport - Set whether to prefer the native transport if availablepublic void setShutdownQuietPeriod(java.time.Duration shutdownQuietPeriod)
shutdownQuietPeriod - Set the shutdown quiet periodpublic void setShutdownTimeout(java.time.Duration shutdownTimeout)
shutdownTimeout - Set the shutdown timeout (must be >= shutdownQuietPeriod)public int getNumOfThreads()
public java.util.Optional<java.lang.Integer> getIoRatio()
getIoRatio in interface io.micronaut.http.netty.channel.EventLoopGroupConfigurationpublic java.util.Optional<java.lang.String> getExecutorName()
getExecutorName in interface io.micronaut.http.netty.channel.EventLoopGroupConfigurationpublic int getNumThreads()
getNumThreads in interface io.micronaut.http.netty.channel.EventLoopGroupConfigurationpublic boolean isPreferNativeTransport()
isPreferNativeTransport in interface io.micronaut.http.netty.channel.EventLoopGroupConfigurationpublic java.time.Duration getShutdownQuietPeriod()
getShutdownQuietPeriod in interface io.micronaut.http.netty.channel.EventLoopGroupConfigurationpublic java.time.Duration getShutdownTimeout()
getShutdownTimeout in interface io.micronaut.http.netty.channel.EventLoopGroupConfiguration