use of com.generallycloud.baseio.component.SocketSelectorEventLoopGroup in project baseio by generallycloud.
the class NioSocketChannelAcceptor method initSelectorLoops.
private void initSelectorLoops() {
// FIXME socket selector event loop ?
ServerConfiguration configuration = getContext().getServerConfiguration();
String eventLoopName = "nio-process(tcp-" + configuration.getSERVER_PORT() + ")";
int core_size = configuration.getSERVER_CORE_SIZE();
this.selectorEventLoopGroup = new SocketSelectorEventLoopGroup((NioSocketChannelContext) getContext(), eventLoopName, core_size);
LifeCycleUtil.start(selectorEventLoopGroup);
}
use of com.generallycloud.baseio.component.SocketSelectorEventLoopGroup in project baseio by generallycloud.
the class NioSocketChannelConnector method initSelectorLoops.
private void initSelectorLoops() {
// FIXME socket selector event loop ?
ServerConfiguration configuration = getContext().getServerConfiguration();
String eventLoopName = "nio-process(tcp-" + configuration.getSERVER_PORT() + ")";
int core_size = configuration.getSERVER_CORE_SIZE();
this.selectorEventLoopGroup = new SocketSelectorEventLoopGroup(getContext(), eventLoopName, core_size);
LifeCycleUtil.start(selectorEventLoopGroup);
}
Aggregations