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
ConstructorsModifierConstructorDescriptionprotected
AbstractChannelMetricsHandler
(@Nullable SocketAddress remoteAddress, boolean onServer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
channelRead
(ChannelHandlerContext ctx, Object msg) void
abstract ChannelHandler
void
exceptionCaught
(ChannelHandlerContext ctx, Throwable cause) abstract ChannelMetricsRecorder
recorder()
protected void
recordException
(ChannelHandlerContext ctx, SocketAddress address) protected void
recordRead
(ChannelHandlerContext ctx, SocketAddress address, long bytes) protected void
recordWrite
(ChannelHandlerContext ctx, SocketAddress address, long bytes) abstract ChannelHandler
void
write
(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) Methods inherited from class io.netty.channel.ChannelDuplexHandler
bind, close, connect, deregister, disconnect, flush, read
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggered
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Constructor Details
-
AbstractChannelMetricsHandler
-
-
Method Details
-
channelActive
- Specified by:
channelActive
in interfaceChannelInboundHandler
- Overrides:
channelActive
in classChannelInboundHandlerAdapter
-
channelInactive
- Specified by:
channelInactive
in interfaceChannelInboundHandler
- Overrides:
channelInactive
in classChannelInboundHandlerAdapter
-
channelRegistered
- Specified by:
channelRegistered
in interfaceChannelInboundHandler
- Overrides:
channelRegistered
in classChannelInboundHandlerAdapter
-
channelRead
- Specified by:
channelRead
in interfaceChannelInboundHandler
- Overrides:
channelRead
in classChannelInboundHandlerAdapter
-
write
- Specified by:
write
in interfaceChannelOutboundHandler
- Overrides:
write
in classChannelDuplexHandler
-
exceptionCaught
- Specified by:
exceptionCaught
in interfaceChannelHandler
- Specified by:
exceptionCaught
in interfaceChannelInboundHandler
- Overrides:
exceptionCaught
in classChannelInboundHandlerAdapter
-
connectMetricsHandler
-
tlsMetricsHandler
-
recorder
-
recordException
-
recordRead
-
recordWrite
-