List of usage examples for io.netty.handler.timeout IdleStateEvent ALL_IDLE_STATE_EVENT
IdleStateEvent ALL_IDLE_STATE_EVENT
To view the source code for io.netty.handler.timeout IdleStateEvent ALL_IDLE_STATE_EVENT.
Click Source Link
From source file:io.netty.handler.timeout.IdleStateActivityTracker.java
License:Apache License
@Override public void timedOut(ChannelHandlerContext ctx) throws Exception { IdleStateEvent event;//from ww w.java2s. c om if (firstAllIdleEvent) { firstAllIdleEvent = false; event = IdleStateEvent.FIRST_ALL_IDLE_STATE_EVENT; } else { event = IdleStateEvent.ALL_IDLE_STATE_EVENT; } channelIdle(ctx, event); }
From source file:org.wso2.carbon.transport.http.netty.listener.WebSocketSourceHandler.java
License:Open Source License
@Override public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception { if (evt instanceof IdleStateEvent) { IdleStateEvent idleStateEvent = (IdleStateEvent) evt; if (idleStateEvent.state() == IdleStateEvent.ALL_IDLE_STATE_EVENT.state()) { notifyIdleTimeout();/*ww w .j a v a2s . c om*/ } } }
From source file:org.wso2.carbon.transport.http.netty.sender.websocket.WebSocketTargetHandler.java
License:Open Source License
@Override public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception { if (evt instanceof IdleStateEvent) { IdleStateEvent idleStateEvent = (IdleStateEvent) evt; if (idleStateEvent.state() == IdleStateEvent.ALL_IDLE_STATE_EVENT.state()) { notifyIdleTimeout(ctx);/*from ww w . ja v a 2 s .co m*/ } } }