public class ChannelMetricsHandler extends ChannelDuplexHandler
ChannelHandler
for collecting metrics on protocol level.ChannelHandler.Sharable
Modifier and Type | Method and Description |
---|---|
void |
channelRead(ChannelHandlerContext ctx,
Object msg) |
void |
channelRegistered(ChannelHandlerContext ctx) |
void |
exceptionCaught(ChannelHandlerContext ctx,
Throwable cause) |
ChannelMetricsRecorder |
recorder() |
void |
write(ChannelHandlerContext ctx,
Object msg,
ChannelPromise promise) |
bind, close, connect, deregister, disconnect, flush, read
channelActive, channelInactive, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlerAdded, handlerRemoved
public void channelRegistered(ChannelHandlerContext ctx)
channelRegistered
in interface ChannelInboundHandler
channelRegistered
in class ChannelInboundHandlerAdapter
public void channelRead(ChannelHandlerContext ctx, Object msg)
channelRead
in interface ChannelInboundHandler
channelRead
in class ChannelInboundHandlerAdapter
public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise)
write
in interface ChannelOutboundHandler
write
in class ChannelDuplexHandler
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause)
exceptionCaught
in interface ChannelHandler
exceptionCaught
in interface ChannelInboundHandler
exceptionCaught
in class ChannelInboundHandlerAdapter
public ChannelMetricsRecorder recorder()