public class IdleStateAwareChannelHandler extends SimpleChannelHandler
SimpleChannelHandler
that adds the handler method for
an IdleStateEvent
.ChannelHandler.Sharable
构造器和说明 |
---|
IdleStateAwareChannelHandler() |
限定符和类型 | 方法和说明 |
---|---|
void |
channelIdle(ChannelHandlerContext ctx,
IdleStateEvent e)
Invoked when a
Channel has been idle for a while. |
void |
handleUpstream(ChannelHandlerContext ctx,
ChannelEvent e)
Handles the specified upstream event.
|
bindRequested, channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, exceptionCaught, handleDownstream, messageReceived, setInterestOpsRequested, unbindRequested, writeComplete, writeRequested
public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) throws java.lang.Exception
SimpleChannelHandler
handleUpstream
在接口中 ChannelUpstreamHandler
handleUpstream
在类中 SimpleChannelHandler
ctx
- the context object for this handlere
- the upstream event to process or interceptjava.lang.Exception
public void channelIdle(ChannelHandlerContext ctx, IdleStateEvent e) throws java.lang.Exception
Channel
has been idle for a while.java.lang.Exception