Package com.wavefront.agent.channel
Class ConnectionTrackingHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- com.wavefront.agent.channel.ConnectionTrackingHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
@Sharable public class ConnectionTrackingHandler extends io.netty.channel.ChannelInboundHandlerAdapterTrack the number of currently active connections and total count of accepted incoming connections.- Author:
- [email protected]
-
-
Constructor Summary
Constructors Constructor Description ConnectionTrackingHandler(com.yammer.metrics.core.Counter acceptedConnectionsCounter, com.yammer.metrics.core.Counter activeConnectionsCounter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelActive(io.netty.channel.ChannelHandlerContext ctx)voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx)-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-