public class IdleStateAwareChannelUpstreamHandler extends SimpleChannelUpstreamHandler
SimpleChannelUpstreamHandler
that adds the handler method
for an IdleStateEvent
.ChannelHandler.Sharable
Constructor and Description |
---|
IdleStateAwareChannelUpstreamHandler()
Creates a new instance.
|
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.
|
channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, exceptionCaught, messageReceived, writeComplete
public IdleStateAwareChannelUpstreamHandler()
public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) throws Exception
SimpleChannelUpstreamHandler
handleUpstream
in interface ChannelUpstreamHandler
handleUpstream
in class SimpleChannelUpstreamHandler
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-2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.