public class SingleNioLoopProvider extends RxEventLoopProvider
RxEventLoopProvider that returns the same EventLoopGroup instance for both
client and server.| Modifier and Type | Class and Description |
|---|---|
static class |
SingleNioLoopProvider.SharedNioEventLoopGroup |
| 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 RxClient instances if it is not explicitly provided using
AbstractClientBuilder.eventloop(EventLoopGroup). |
io.netty.channel.EventLoopGroup |
globalClientEventLoop(boolean nativeTransport)
The
EventLoopGroup to be used by all RxClient instances if it is not explicitly provided using
AbstractClientBuilder.eventloop(EventLoopGroup). |
io.netty.channel.EventLoopGroup |
globalServerEventLoop()
The
EventLoopGroup to be used by all RxServer instances if it is not explicitly provided using
AbstractServerBuilder.eventLoop(EventLoopGroup) or ConnectionBasedServerBuilder.eventLoops(EventLoopGroup, EventLoopGroup) . |
io.netty.channel.EventLoopGroup |
globalServerEventLoop(boolean nativeTransport)
The
EventLoopGroup to be used by all RxServer instances if it is not explicitly provided using
AbstractServerBuilder.eventLoop(EventLoopGroup) or ConnectionBasedServerBuilder.eventLoops(EventLoopGroup, EventLoopGroup) . |
io.netty.channel.EventLoopGroup |
globalServerParentEventLoop()
The
EventLoopGroup to be used by all RxServer instances as a parent eventloop group
(First argument to this method: ServerBootstrap.group(EventLoopGroup, EventLoopGroup)),
if it is not explicitly provided using AbstractServerBuilder.eventLoop(EventLoopGroup) or
ConnectionBasedServerBuilder.eventLoops(EventLoopGroup, EventLoopGroup). |
io.netty.channel.EventLoopGroup |
globalServerParentEventLoop(boolean nativeTransport)
The
EventLoopGroup to be used by all RxServer instances as a parent eventloop group
(First argument to this method: ServerBootstrap.group(EventLoopGroup, EventLoopGroup)),
if it is not explicitly provided using AbstractServerBuilder.eventLoop(EventLoopGroup) or
ConnectionBasedServerBuilder.eventLoops(EventLoopGroup, EventLoopGroup). |
public SingleNioLoopProvider()
public SingleNioLoopProvider(int threadCount)
public SingleNioLoopProvider(int parentEventLoopCount,
int childEventLoopCount)
public io.netty.channel.EventLoopGroup globalClientEventLoop()
RxEventLoopProviderEventLoopGroup to be used by all RxClient instances if it is not explicitly provided using
AbstractClientBuilder.eventloop(EventLoopGroup).globalClientEventLoop in class RxEventLoopProviderEventLoopGroup to be used for all clients.public io.netty.channel.EventLoopGroup globalServerEventLoop()
RxEventLoopProviderEventLoopGroup to be used by all RxServer instances if it is not explicitly provided using
AbstractServerBuilder.eventLoop(EventLoopGroup) or ConnectionBasedServerBuilder.eventLoops(EventLoopGroup, EventLoopGroup) .globalServerEventLoop in class RxEventLoopProviderEventLoopGroup to be used for all servers.public io.netty.channel.EventLoopGroup globalServerParentEventLoop()
RxEventLoopProviderEventLoopGroup to be used by all RxServer instances as a parent eventloop group
(First argument to this method: ServerBootstrap.group(EventLoopGroup, EventLoopGroup)),
if it is not explicitly provided using AbstractServerBuilder.eventLoop(EventLoopGroup) or
ConnectionBasedServerBuilder.eventLoops(EventLoopGroup, EventLoopGroup).globalServerParentEventLoop in class RxEventLoopProviderEventLoopGroup to be used for all servers.public io.netty.channel.EventLoopGroup globalClientEventLoop(boolean nativeTransport)
RxEventLoopProviderEventLoopGroup to be used by all RxClient instances if it is not explicitly provided using
AbstractClientBuilder.eventloop(EventLoopGroup).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 RxServer instances if it is not explicitly provided using
AbstractServerBuilder.eventLoop(EventLoopGroup) or ConnectionBasedServerBuilder.eventLoops(EventLoopGroup, EventLoopGroup) .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 RxServer instances as a parent eventloop group
(First argument to this method: ServerBootstrap.group(EventLoopGroup, EventLoopGroup)),
if it is not explicitly provided using AbstractServerBuilder.eventLoop(EventLoopGroup) or
ConnectionBasedServerBuilder.eventLoops(EventLoopGroup, EventLoopGroup).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.