Class Netty4OpenChannelsHandler

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, java.io.Closeable, java.lang.AutoCloseable, org.elasticsearch.common.lease.Releasable

    @Sharable
    public class Netty4OpenChannelsHandler
    extends io.netty.channel.ChannelInboundHandlerAdapter
    implements org.elasticsearch.common.lease.Releasable
    • Nested Class Summary

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

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

      Constructors 
      Constructor Description
      Netty4OpenChannelsHandler​(org.apache.logging.log4j.Logger logger)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void channelActive​(io.netty.channel.ChannelHandlerContext ctx)  
      void close()  
      long numberOfOpenChannels()  
      long totalChannels()  
      • Methods inherited from interface io.netty.channel.ChannelHandler

        handlerAdded, handlerRemoved
      • Methods inherited from class io.netty.channel.ChannelHandlerAdapter

        ensureNotSharable, handlerAdded, handlerRemoved, isSharable
      • Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

        channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Netty4OpenChannelsHandler

        public Netty4OpenChannelsHandler​(org.apache.logging.log4j.Logger logger)
    • Method Detail

      • channelActive

        public void channelActive​(io.netty.channel.ChannelHandlerContext ctx)
                           throws java.lang.Exception
        Specified by:
        channelActive in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        channelActive in class io.netty.channel.ChannelInboundHandlerAdapter
        Throws:
        java.lang.Exception
      • numberOfOpenChannels

        public long numberOfOpenChannels()
      • totalChannels

        public long totalChannels()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface org.elasticsearch.common.lease.Releasable