Package org.jboss.netty.handler.timeout
Class IdleStateAwareChannelUpstreamHandler
java.lang.Object
org.jboss.netty.channel.SimpleChannelUpstreamHandler
org.jboss.netty.handler.timeout.IdleStateAwareChannelUpstreamHandler
- All Implemented Interfaces:
ChannelHandler,ChannelUpstreamHandler
An extended
SimpleChannelUpstreamHandler that adds the handler method
for an IdleStateEvent.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
ChannelHandler.Sharable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked when aChannelhas been idle for a while.voidHandles the specified upstream event.Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler
channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, exceptionCaught, messageReceived, writeComplete
-
Constructor Details
-
IdleStateAwareChannelUpstreamHandler
public IdleStateAwareChannelUpstreamHandler()
-
-
Method Details
-
handleUpstream
Description copied from class:SimpleChannelUpstreamHandlerHandles the specified upstream event. Down-casts the received upstream event into more meaningful sub-type event and calls an appropriate handler method with the down-casted event.- Specified by:
handleUpstreamin interfaceChannelUpstreamHandler- Overrides:
handleUpstreamin classSimpleChannelUpstreamHandler- Parameters:
ctx- the context object for this handlere- the upstream event to process or intercept- Throws:
Exception
-
channelIdle
Invoked when aChannelhas been idle for a while.- Throws:
Exception
-