public abstract static class NettyHttpServerConfiguration.EventLoopConfig extends java.lang.Object implements EventLoopGroupConfiguration
DEFAULT, DEFAULT_LOOP, 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() |
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 |
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 int getNumOfThreads()
public java.util.Optional<java.lang.Integer> getIoRatio()
getIoRatio
in interface EventLoopGroupConfiguration
public java.util.Optional<java.lang.String> getExecutorName()
getExecutorName
in interface EventLoopGroupConfiguration
public int getNumThreads()
getNumThreads
in interface EventLoopGroupConfiguration
public boolean isPreferNativeTransport()
isPreferNativeTransport
in interface EventLoopGroupConfiguration