Search in sources :

Example 1 with IdleEventListener

use of info.xiancloud.nettyhttpserver.http.handler.IdleEventListener in project xian by happyyangyuan.

the class DefaultInitializer method initIdleStateHandlers.

private void initIdleStateHandlers(ChannelPipeline p) {
    p.addLast("idleStateHandler", new IdleStateHandler(ReqQueue.TIMEOUT_IN_MILLIS, ReqQueue.TIMEOUT_IN_MILLIS, ReqQueue.TIMEOUT_IN_MILLIS, TimeUnit.MILLISECONDS));
    p.addLast("idleEventListener", new IdleEventListener());
}
Also used : IdleStateHandler(io.netty.handler.timeout.IdleStateHandler) IdleEventListener(info.xiancloud.nettyhttpserver.http.handler.IdleEventListener)

Aggregations

IdleEventListener (info.xiancloud.nettyhttpserver.http.handler.IdleEventListener)1 IdleStateHandler (io.netty.handler.timeout.IdleStateHandler)1