EventLoopGroup selector with associated
io.netty5.channel.Channel factories.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | DEFAULT_IO_SELECT_COUNT
Default selector thread count, fallback to -1 (no selector thread) |
| public static final int | DEFAULT_IO_WORKER_COUNT
Default worker thread count, fallback to available processor (but with a minimum value of 4) |
| public static final boolean | DEFAULT_NATIVE
Default value whether the native transport (epoll, kqueue) will be preferred, fallback it will be preferred when available |
| public static final long | DEFAULT_SHUTDOWN_QUIET_PERIOD
Default quiet period that guarantees that the disposal of the underlying LoopResources will not happen, fallback to 2 seconds. |
| public static final long | DEFAULT_SHUTDOWN_TIMEOUT
Default maximum amount of time to wait until the disposal of the underlying LoopResources regardless if a task was submitted during the quiet period, fallback to 15 seconds. |
| Modifier and Type | Method and Description |
|---|---|
| public static EventLoopGroup | Returns: a decoratedEventLoopGroup that will colocate executions on the
same thread stackthe group)EventLoopGroup to decorateCreate a delegating |
| public static LoopResources | create(String
the event loop thread name prefix prefix)Create a simple |
| public static LoopResources | create(String
the event loop thread name prefix prefix, int number of worker threads workerCount, boolean should the thread be released on jvm shutdown daemon)Create a simple |
| public static LoopResources | create(String
the event loop thread name prefix prefix, int number of selector threads selectCount, int number of worker threads workerCount, boolean should the thread be released on jvm shutdown daemon)Create a simple |
| public default boolean | Returns: true ifEventLoopGroup should not be shutdownreturn true if |
| public default void | |
| public default Mono | Returns: a Mono representing the completion of the LoopResources disposal.Returns a Mono that triggers the disposal of the underlying LoopResources when subscribed to. |
| public default Mono | Returns: a Mono representing the completion of the LoopResources disposal.the quiet period as described above quietPeriod, Duration the maximum amount of time to wait until the disposal of the underlying
LoopResources regardless if a task was submitted during the quiet period timeout)Returns a Mono that triggers the disposal of the underlying LoopResources when subscribed to. |
| public static boolean | Returns: true if environment supports native connectionsReturn true if environment supports native connections |
| public default < the CHANNEL extends Channel> CHANNELChannel implementation | Returns: aChannel instancethe channel type channelType, EventLoop the eventLoop, ProtocolFamily EventLoop to assignthe configured protocolFamily)ProtocolFamily to run withCallback for a |
| public default EventLoopGroup | Returns: a newEventLoopGroupshould use native group if current environment supports it useNative)Callback for client |
| public EventLoopGroup | Returns: a newEventLoopGroupshould use native group if current environment supports it useNative)Callback for server |
| public default < the SERVERCHANNEL extends ServerChannel> SERVERCHANNELServerChannel implementation | Returns: aServerChannel instancethe channel type channelType, EventLoop the eventLoop, EventLoopGroup childEventLoopGroup, ProtocolFamily EventLoop to assignthe configured protocolFamily)ProtocolFamily to run withCallback for a |
| public default EventLoopGroup | Returns: a newEventLoopGroupshould use native group if current environment supports it useNative)Callback for server select |
| DEFAULT_IO_SELECT_COUNT | back to summary |
|---|---|
| public static final int DEFAULT_IO_SELECT_COUNT Default selector thread count, fallback to -1 (no selector thread) | |
| DEFAULT_IO_WORKER_COUNT | back to summary |
|---|---|
| public static final int DEFAULT_IO_WORKER_COUNT Default worker thread count, fallback to available processor (but with a minimum value of 4) | |
| DEFAULT_NATIVE | back to summary |
|---|---|
| public static final boolean DEFAULT_NATIVE Default value whether the native transport (epoll, kqueue) will be preferred, fallback it will be preferred when available | |
| DEFAULT_SHUTDOWN_QUIET_PERIOD | back to summary |
|---|---|
| public static final long DEFAULT_SHUTDOWN_QUIET_PERIOD Default quiet period that guarantees that the disposal of the underlying LoopResources will not happen, fallback to 2 seconds. | |
| DEFAULT_SHUTDOWN_TIMEOUT | back to summary |
|---|---|
| public static final long DEFAULT_SHUTDOWN_TIMEOUT Default maximum amount of time to wait until the disposal of the underlying LoopResources regardless if a task was submitted during the quiet period, fallback to 15 seconds. | |
| colocate | back to summary |
|---|---|
| public static EventLoopGroup colocate(EventLoopGroup group) Create a delegating
| |
| create | back to summary |
|---|---|
| public static LoopResources create(String prefix) Create a simple
| |
| create | back to summary |
|---|---|
| public static LoopResources create(String prefix, int workerCount, boolean daemon) Create a simple
| |
| create | back to summary |
|---|---|
| public static LoopResources create(String prefix, int selectCount, int workerCount, boolean daemon) Create a simple
| |
| daemon | back to summary |
|---|---|
| public default boolean daemon() return true if
| |
| dispose | back to summary |
|---|---|
| public default void dispose() Implements reactor. Dispose the underlying LoopResources.
This method is NOT blocking. It is implemented as fire-and-forget.
Use
| |
| disposeLater | back to summary |
|---|---|
| public default Mono Returns a Mono that triggers the disposal of the underlying LoopResources when subscribed to.
The quiet period will be | |
| disposeLater | back to summary |
|---|---|
| public default Mono Returns a Mono that triggers the disposal of the underlying LoopResources when subscribed to.
It is guaranteed that the disposal of the underlying LoopResources will not happen before
| |
| hasNativeSupport | back to summary |
|---|---|
| public static boolean hasNativeSupport() Return true if environment supports native connections
| |
| onChannel | back to summary |
|---|---|
| public default <CHANNEL extends Channel> CHANNEL onChannel(Class<CHANNEL> channelType, EventLoop eventLoop, ProtocolFamily protocolFamily) Callback for a
| |
| onClient | back to summary |
|---|---|
| public default EventLoopGroup onClient(boolean useNative) Callback for client
| |
| onServer | back to summary |
|---|---|
| public EventLoopGroup onServer(boolean useNative) Callback for server
| |
| onServerChannel | back to summary |
|---|---|
| public default <SERVERCHANNEL extends ServerChannel> SERVERCHANNEL onServerChannel(Class<SERVERCHANNEL> channelType, EventLoop eventLoop, EventLoopGroup childEventLoopGroup, ProtocolFamily protocolFamily) Callback for a
| |
| onServerSelect | back to summary |
|---|---|
| public default EventLoopGroup onServerSelect(boolean useNative) Callback for server select
| |