@ChannelHandler.Sharable public class ChannelStatistics extends io.netty.channel.ChannelDuplexHandler implements XioMetrics
| Constructor and Description |
|---|
ChannelStatistics(io.netty.channel.group.ChannelGroup allChannels) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) |
long |
getBytesRead() |
long |
getBytesWritten() |
int |
getChannelCount() |
bind, close, connect, deregister, disconnect, flush, read, writechannelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredhandlerAdded, handlerRemoved, isSharablepublic static final String NAME
public ChannelStatistics(io.netty.channel.group.ChannelGroup allChannels)
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic int getChannelCount()
getChannelCount in interface XioMetricspublic long getBytesRead()
getBytesRead in interface XioMetricspublic long getBytesWritten()
getBytesWritten in interface XioMetricspublic void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelReadComplete in interface io.netty.channel.ChannelInboundHandlerchannelReadComplete in class io.netty.channel.ChannelInboundHandlerAdapterExceptionCopyright © 2016. All Rights Reserved.