Class IdleHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelDuplexHandler
io.netty.handler.timeout.IdleStateHandler
io.netty.handler.timeout.ReadTimeoutHandler
org.opendaylight.openflowjava.protocol.impl.core.IdleHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler,io.netty.channel.ChannelOutboundHandler
public class IdleHandler
extends io.netty.handler.timeout.ReadTimeoutHandler
Detects idle state of switch and informs upper layers.
- Author:
- michal.polkorab
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) protected voidreadTimedOut(io.netty.channel.ChannelHandlerContext ctx) Methods inherited from class io.netty.handler.timeout.ReadTimeoutHandler
channelIdleMethods inherited from class io.netty.handler.timeout.IdleStateHandler
channelActive, channelInactive, channelReadComplete, channelRegistered, getAllIdleTimeInMillis, getReaderIdleTimeInMillis, getWriterIdleTimeInMillis, handlerAdded, handlerRemoved, newIdleStateEvent, resetReadTimeout, resetWriteTimeout, writeMethods inherited from class io.netty.channel.ChannelDuplexHandler
bind, close, connect, deregister, disconnect, flush, readMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Constructor Details
-
IdleHandler
Constructor.
-
-
Method Details
-
channelRead
- Specified by:
channelReadin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadin classio.netty.handler.timeout.IdleStateHandler- Throws:
Exception
-
readTimedOut
protected void readTimedOut(io.netty.channel.ChannelHandlerContext ctx) - Overrides:
readTimedOutin classio.netty.handler.timeout.ReadTimeoutHandler
-