public class IdleStateAwareChannelHandler extends SimpleChannelHandler
SimpleChannelHandler
that adds the handler method for
an IdleStateEvent
.ChannelHandler.Sharable
Constructor and Description |
---|
IdleStateAwareChannelHandler() |
Modifier and Type | Method and Description |
---|---|
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 Exception
SimpleChannelHandler
handleUpstream
in interface ChannelUpstreamHandler
handleUpstream
in class SimpleChannelHandler
ctx
- the context object for this handlere
- the upstream event to process or interceptException
public void channelIdle(ChannelHandlerContext ctx, IdleStateEvent e) throws Exception
Channel
has been idle for a while.Exception
Copyright © 2008-2015 The Netty Project. All Rights Reserved.