Search in sources :

Example 1 with EzyNioUdpReadingLoopHandler

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;
}
Also used : EzySocketEventLoopOneHandler(com.tvd12.ezyfoxserver.socket.EzySocketEventLoopOneHandler) EzyNioUdpReader(com.tvd12.ezyfoxserver.nio.udp.EzyNioUdpReader) EzyNioUdpReadingLoopHandler(com.tvd12.ezyfoxserver.nio.udp.EzyNioUdpReadingLoopHandler)

Aggregations

EzyNioUdpReader (com.tvd12.ezyfoxserver.nio.udp.EzyNioUdpReader)1 EzyNioUdpReadingLoopHandler (com.tvd12.ezyfoxserver.nio.udp.EzyNioUdpReadingLoopHandler)1 EzySocketEventLoopOneHandler (com.tvd12.ezyfoxserver.socket.EzySocketEventLoopOneHandler)1