Class IdleConnectionReaperHandler

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, io.netty.channel.ChannelOutboundHandler

    public class IdleConnectionReaperHandler
    extends io.netty.handler.timeout.IdleStateHandler
    A handler that closes unused channels that have not had any traffic on them for a configurable amount of time.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

        io.netty.channel.ChannelHandler.Sharable
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void channelIdle​(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.timeout.IdleStateEvent event)  
      • Methods inherited from class io.netty.handler.timeout.IdleStateHandler

        channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, getAllIdleTimeInMillis, getReaderIdleTimeInMillis, getWriterIdleTimeInMillis, handlerAdded, handlerRemoved, newIdleStateEvent, write
      • Methods inherited from class io.netty.channel.ChannelDuplexHandler

        bind, close, connect, deregister, disconnect, flush, read
      • Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

        channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
      • Methods inherited from class io.netty.channel.ChannelHandlerAdapter

        ensureNotSharable, isSharable
    • Constructor Detail

      • IdleConnectionReaperHandler

        public IdleConnectionReaperHandler​(int maxIdleTimeMillis)
    • Method Detail

      • channelIdle

        protected void channelIdle​(io.netty.channel.ChannelHandlerContext ctx,
                                   io.netty.handler.timeout.IdleStateEvent event)
        Overrides:
        channelIdle in class io.netty.handler.timeout.IdleStateHandler