@ChannelHandler.Sharable
public class BytesInspector
extends io.netty.channel.ChannelDuplexHandler
Constructor and Description |
---|
BytesInspector(MetricEventsSubject eventsSubject,
ChannelMetricEventProvider metricEventProvider) |
Modifier and Type | Method and Description |
---|---|
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object msg) |
protected void |
publishBytesRead(io.netty.buffer.ByteBuf byteBuf) |
protected void |
publishBytesWritten(long bytesToWrite,
io.netty.channel.ChannelPromise promise) |
void |
write(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object msg,
io.netty.channel.ChannelPromise promise) |
bind, close, connect, deregister, disconnect, flush, read
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
handlerAdded, handlerRemoved, isSharable
public BytesInspector(MetricEventsSubject eventsSubject, ChannelMetricEventProvider metricEventProvider)
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object msg) throws java.lang.Exception
channelRead
in interface io.netty.channel.ChannelInboundHandler
channelRead
in class io.netty.channel.ChannelInboundHandlerAdapter
java.lang.Exception
public void write(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object msg, io.netty.channel.ChannelPromise promise) throws java.lang.Exception
write
in interface io.netty.channel.ChannelOutboundHandler
write
in class io.netty.channel.ChannelDuplexHandler
java.lang.Exception
protected void publishBytesWritten(long bytesToWrite, io.netty.channel.ChannelPromise promise)
protected void publishBytesRead(io.netty.buffer.ByteBuf byteBuf)