public abstract static class NettyHttpServerConfiguration.EventLoopConfig extends java.lang.Object implements EventLoopGroupConfiguration
DEFAULT, DEFAULT_LOOP, DEFAULT_SHUTDOWN_QUIET_PERIOD, DEFAULT_SHUTDOWN_TIMEOUT, EVENT_LOOPS| 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()
public 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 EventLoopGroupConfigurationpublic java.util.Optional<java.lang.String> getExecutorName()
getExecutorName in interface EventLoopGroupConfigurationpublic int getNumThreads()
getNumThreads in interface EventLoopGroupConfigurationpublic boolean isPreferNativeTransport()
isPreferNativeTransport in interface EventLoopGroupConfigurationpublic java.time.Duration getShutdownQuietPeriod()
getShutdownQuietPeriod in interface EventLoopGroupConfigurationpublic java.time.Duration getShutdownTimeout()
getShutdownTimeout in interface EventLoopGroupConfiguration