use of com.tvd12.ezyfoxserver.nio.udp.EzyNioUdpReadingLoopHandler in project ezyfox-server by youngmonkeys.
the class EzyUdpServerBootstrap method newReadingLoopHandler.
private EzySocketEventLoopHandler newReadingLoopHandler() {
EzySocketEventLoopOneHandler loopHandler = new EzyNioUdpReadingLoopHandler();
loopHandler.setThreadPoolSize(getSocketReaderPoolSize());
EzyNioUdpReader eventHandler = new EzyNioUdpReader(getUdpMaxRequestSize());
eventHandler.setOwnSelector(readSelector);
eventHandler.setUdpDataHandler(udpDataHandler);
loopHandler.setEventHandler(eventHandler);
return loopHandler;
}
Aggregations