Class Netty4OpenChannelsHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- org.elasticsearch.transport.netty4.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
-
-
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 voidchannelActive(io.netty.channel.ChannelHandlerContext ctx)voidclose()longnumberOfOpenChannels()longtotalChannels()-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Method Detail
-
channelActive
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws java.lang.Exception- Specified by:
channelActivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelActivein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
java.lang.Exception
-
numberOfOpenChannels
public long numberOfOpenChannels()
-
totalChannels
public long totalChannels()
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceorg.elasticsearch.common.lease.Releasable
-
-