public class SingleNioLoopProvider extends RxEventLoopProvider
RxEventLoopProvider that returns the same EventLoopGroup instance for both
client and server.| Constructor and Description |
|---|
SingleNioLoopProvider() |
SingleNioLoopProvider(int threadCount) |
SingleNioLoopProvider(int parentEventLoopCount,
int childEventLoopCount) |
| Modifier and Type | Method and Description |
|---|---|
io.netty.channel.EventLoopGroup |
globalClientEventLoop()
The
EventLoopGroup to be used by all client instances if it is not explicitly provided in the client. |
io.netty.channel.EventLoopGroup |
globalClientEventLoop(boolean nativeTransport)
The
EventLoopGroup to be used by all client instances if it is not explicitly provided. |
io.netty.channel.EventLoopGroup |
globalServerEventLoop()
The
EventLoopGroup to be used by all server instances if it is not explicitly provided. |
io.netty.channel.EventLoopGroup |
globalServerEventLoop(boolean nativeTransport)
The
EventLoopGroup to be used by all server instances if it is not explicitly provided. |
io.netty.channel.EventLoopGroup |
globalServerParentEventLoop()
The
EventLoopGroup to be used by all server instances as a parent eventloop group
(First argument to this method: ServerBootstrap.group(EventLoopGroup, EventLoopGroup)),
if it is not explicitly provided. |
io.netty.channel.EventLoopGroup |
globalServerParentEventLoop(boolean nativeTransport)
The
EventLoopGroup to be used by all server instances as a parent eventloop group
(First argument to this method: ServerBootstrap.group(EventLoopGroup, EventLoopGroup)),
if it is not explicitly provided. |
public SingleNioLoopProvider()
public SingleNioLoopProvider(int threadCount)
public SingleNioLoopProvider(int parentEventLoopCount,
int childEventLoopCount)
public io.netty.channel.EventLoopGroup globalClientEventLoop()
RxEventLoopProviderEventLoopGroup to be used by all client instances if it is not explicitly provided in the client.globalClientEventLoop in class RxEventLoopProviderEventLoopGroup to be used for all clients.public io.netty.channel.EventLoopGroup globalServerEventLoop()
RxEventLoopProviderEventLoopGroup to be used by all server instances if it is not explicitly provided.globalServerEventLoop in class RxEventLoopProviderEventLoopGroup to be used for all servers.public io.netty.channel.EventLoopGroup globalServerParentEventLoop()
RxEventLoopProviderEventLoopGroup to be used by all server instances as a parent eventloop group
(First argument to this method: ServerBootstrap.group(EventLoopGroup, EventLoopGroup)),
if it is not explicitly provided.globalServerParentEventLoop in class RxEventLoopProviderEventLoopGroup to be used for all servers.public io.netty.channel.EventLoopGroup globalClientEventLoop(boolean nativeTransport)
RxEventLoopProviderEventLoopGroup to be used by all client instances if it is not explicitly provided.globalClientEventLoop in class RxEventLoopProvidernativeTransport - true If the eventloop for native transport is to be returned (if configured)EventLoopGroup to be used for all client. If nativeTransport was true then
return the EventLoopGroup for native transport.public io.netty.channel.EventLoopGroup globalServerEventLoop(boolean nativeTransport)
RxEventLoopProviderEventLoopGroup to be used by all server instances if it is not explicitly provided.globalServerEventLoop in class RxEventLoopProvidernativeTransport - true If the eventloop for native transport is to be returned (if configured)EventLoopGroup to be used for all servers. If nativeTransport was true then
return the EventLoopGroup for native transport.public io.netty.channel.EventLoopGroup globalServerParentEventLoop(boolean nativeTransport)
RxEventLoopProviderEventLoopGroup to be used by all server instances as a parent eventloop group
(First argument to this method: ServerBootstrap.group(EventLoopGroup, EventLoopGroup)),
if it is not explicitly provided.globalServerParentEventLoop in class RxEventLoopProvidernativeTransport - true If the eventloop for native transport is to be returned (if configured)EventLoopGroup to be used for all servers. If nativeTransport was true then
return the EventLoopGroup for native transport.