Package reactor.netty.channel
Class AbstractChannelMetricsHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelDuplexHandler
reactor.netty.channel.AbstractChannelMetricsHandler
- All Implemented Interfaces:
ChannelHandler,ChannelInboundHandler,ChannelOutboundHandler
- Direct Known Subclasses:
ChannelMetricsHandler,MicrometerChannelMetricsHandler
Base
ChannelHandler for collecting metrics on protocol level.- Since:
- 1.0.8
- Author:
- Violeta Georgieva
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractChannelMetricsHandler(@Nullable SocketAddress remoteAddress, boolean onServer) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidchannelRead(ChannelHandlerContext ctx, Object msg) voidabstract ChannelHandlervoidexceptionCaught(ChannelHandlerContext ctx, Throwable cause) abstract ChannelMetricsRecorderrecorder()protected voidrecordException(ChannelHandlerContext ctx, SocketAddress address) protected voidrecordRead(ChannelHandlerContext ctx, SocketAddress address, long bytes) protected voidrecordWrite(ChannelHandlerContext ctx, SocketAddress address, long bytes) abstract ChannelHandlervoidwrite(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) Methods inherited from class io.netty.channel.ChannelDuplexHandler
bind, close, connect, deregister, disconnect, flush, readMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Constructor Details
-
AbstractChannelMetricsHandler
-
-
Method Details
-
channelActive
- Specified by:
channelActivein interfaceChannelInboundHandler- Overrides:
channelActivein classChannelInboundHandlerAdapter
-
channelInactive
- Specified by:
channelInactivein interfaceChannelInboundHandler- Overrides:
channelInactivein classChannelInboundHandlerAdapter
-
channelRegistered
- Specified by:
channelRegisteredin interfaceChannelInboundHandler- Overrides:
channelRegisteredin classChannelInboundHandlerAdapter
-
channelRead
- Specified by:
channelReadin interfaceChannelInboundHandler- Overrides:
channelReadin classChannelInboundHandlerAdapter
-
write
- Specified by:
writein interfaceChannelOutboundHandler- Overrides:
writein classChannelDuplexHandler
-
exceptionCaught
- Specified by:
exceptionCaughtin interfaceChannelHandler- Specified by:
exceptionCaughtin interfaceChannelInboundHandler- Overrides:
exceptionCaughtin classChannelInboundHandlerAdapter
-
connectMetricsHandler
-
tlsMetricsHandler
-
recorder
-
recordException
-
recordRead
-
recordWrite
-