@EachProperty(value="micronaut.netty.event-loops", primary="default") public class DefaultEventLoopGroupConfiguration extends java.lang.Object implements EventLoopGroupConfiguration
DEFAULT, DEFAULT_LOOP, EVENT_LOOPS
Constructor and Description |
---|
DefaultEventLoopGroupConfiguration()
Default constructor.
|
DefaultEventLoopGroupConfiguration(java.lang.String name,
int numThreads,
java.lang.Integer ioRatio,
boolean preferNativeTransport,
java.lang.String executor)
Default constructor.
|
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 |
getNumThreads() |
boolean |
isPreferNativeTransport() |
@ConfigurationInject public DefaultEventLoopGroupConfiguration(@Parameter java.lang.String name, @Bindable(defaultValue="0") int numThreads, @Nullable java.lang.Integer ioRatio, @Bindable(defaultValue="false") boolean preferNativeTransport, @Nullable java.lang.String executor)
name
- The name of the groupnumThreads
- The number of threadsioRatio
- The IO ratio (optional)preferNativeTransport
- Whether native transport is to be preferredexecutor
- A named executor service to use (optional)public DefaultEventLoopGroupConfiguration()
public int getNumThreads()
getNumThreads
in interface EventLoopGroupConfiguration
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 boolean isPreferNativeTransport()
isPreferNativeTransport
in interface EventLoopGroupConfiguration