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.ReadTimeoutHandlerDetects idle state of switch and informs upper layers.- Author:
- michal.polkorab
 
- 
- 
Constructor SummaryConstructors Constructor Description IdleHandler(long readerIdleTime, TimeUnit unit)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)protected voidreadTimedOut(io.netty.channel.ChannelHandlerContext ctx)- 
Methods inherited from class io.netty.handler.timeout.IdleStateHandlerchannelActive, channelInactive, channelReadComplete, channelRegistered, getAllIdleTimeInMillis, getReaderIdleTimeInMillis, getWriterIdleTimeInMillis, handlerAdded, handlerRemoved, newIdleStateEvent, write
 - 
Methods inherited from class io.netty.channel.ChannelDuplexHandlerbind, close, connect, deregister, disconnect, flush, read
 
- 
 
- 
- 
- 
Constructor Detail- 
IdleHandlerpublic IdleHandler(long readerIdleTime, TimeUnit unit)Constructor.
 
- 
 - 
Method Detail- 
channelReadpublic void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception- Specified by:
- channelReadin interface- io.netty.channel.ChannelInboundHandler
- Overrides:
- channelReadin class- io.netty.handler.timeout.IdleStateHandler
- Throws:
- Exception
 
 - 
readTimedOutprotected void readTimedOut(io.netty.channel.ChannelHandlerContext ctx) - Overrides:
- readTimedOutin class- io.netty.handler.timeout.ReadTimeoutHandler
 
 
- 
 
-