Top Inners Fields Constructors Methods
reactor.netty5.channel

pack-priv final Class ContextAwareChannelMetricsHandler

extends AbstractChannelMetricsHandler
Class Inheritance
Imports
io.netty5.channel.ChannelHandler, .ChannelHandlerAdapter, .ChannelHandlerContext, io.netty5.util.concurrent.Future, reactor.netty5.Connection, .ConnectionObserver, reactor.util.annotation.Nullable, java.net.SocketAddress, java.time.Duration

Author
Violeta Georgieva
Since
1.0.8

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv final ContextAwareChannelMetricsRecorder
Inherited from reactor.netty5.channel.AbstractChannelMetricsHandler:
onServerremoteAddress

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ChannelHandler
public ContextAwareChannelMetricsRecorder
protected void
protected void
protected void
public ChannelHandler
Inherited from reactor.netty5.channel.AbstractChannelMetricsHandler:
channelActivechannelExceptionCaughtchannelInactivechannelReadchannelRegisteredwrite

Field Detail

recorderback to summary
pack-priv final ContextAwareChannelMetricsRecorder recorder

Constructor Detail

ContextAwareChannelMetricsHandlerback to summary
pack-priv ContextAwareChannelMetricsHandler(ContextAwareChannelMetricsRecorder recorder, SocketAddress remoteAddress, boolean onServer)

Method Detail

connectMetricsHandlerback to summary
public ChannelHandler connectMetricsHandler()

Implements abstract reactor.netty5.channel.AbstractChannelMetricsHandler.connectMetricsHandler.

Annotations
@Override
recorderback to summary
public ContextAwareChannelMetricsRecorder recorder()

Implements abstract reactor.netty5.channel.AbstractChannelMetricsHandler.recorder.

Annotations
@Override
recordExceptionback to summary
protected void recordException(ChannelHandlerContext ctx, SocketAddress address)

Overrides reactor.netty5.channel.AbstractChannelMetricsHandler.recordException.

Annotations
@Override
recordReadback to summary
protected void recordRead(ChannelHandlerContext ctx, SocketAddress address, long bytes)

Overrides reactor.netty5.channel.AbstractChannelMetricsHandler.recordRead.

Annotations
@Override
recordWriteback to summary
protected void recordWrite(ChannelHandlerContext ctx, SocketAddress address, long bytes)

Overrides reactor.netty5.channel.AbstractChannelMetricsHandler.recordWrite.

Annotations
@Override
tlsMetricsHandlerback to summary
public ChannelHandler tlsMetricsHandler()

Implements abstract reactor.netty5.channel.AbstractChannelMetricsHandler.tlsMetricsHandler.

Annotations
@Override
reactor.netty5.channel back to summary

pack-priv final Class ContextAwareChannelMetricsHandler.ContextAwareConnectMetricsHandler

extends ChannelHandlerAdapter
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final ContextAwareChannelMetricsRecorder

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Future<Void>
connect(ChannelHandlerContext
the ChannelHandlerContext for which the connect operation is made
ctx
,
SocketAddress
the SocketAddress to which it should connect
remoteAddress
,
SocketAddress
the SocketAddress which is used as source on connect
localAddress
)

Overrides default io.netty5.channel.ChannelHandler.connect.

Called once a connect operation is made.
pack-priv void
recordConnectTime(ChannelHandlerContext ctx, SocketAddress address, long connectTimeStart, String status)

Field Detail

recorderback to summary
pack-priv final ContextAwareChannelMetricsRecorder recorder

Constructor Detail

ContextAwareConnectMetricsHandlerback to summary
pack-priv ContextAwareConnectMetricsHandler(ContextAwareChannelMetricsRecorder recorder)

Method Detail

connectback to summary
public Future<Void> connect(ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress)

Overrides default io.netty5.channel.ChannelHandler.connect.

Doc from io.netty5.channel.ChannelHandler.connect.

Called once a connect operation is made.

Parameters
ctx:ChannelHandlerContext

the ChannelHandlerContext for which the connect operation is made

remoteAddress:SocketAddress

the SocketAddress to which it should connect

localAddress:SocketAddress

the SocketAddress which is used as source on connect

Returns:Future<Void>

the Future which will be notified once the operation completes.

Annotations
@Override
recordConnectTimeback to summary
pack-priv void recordConnectTime(ChannelHandlerContext ctx, SocketAddress address, long connectTimeStart, String status)
reactor.netty5.channel back to summary

pack-priv final Class ContextAwareChannelMetricsHandler.TlsMetricsHandler

extends TlsMetricsHandler
Class Inheritance

Field Summary

Inherited from reactor.netty5.channel.ChannelMetricsHandler.TlsMetricsHandler:
recorder

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected void
Inherited from reactor.netty5.channel.ChannelMetricsHandler.TlsMetricsHandler:
channelActive

Constructor Detail

TlsMetricsHandlerback to summary
pack-priv TlsMetricsHandler(ContextAwareChannelMetricsRecorder recorder)

Method Detail

recordTlsHandshakeTimeback to summary
protected void recordTlsHandshakeTime(ChannelHandlerContext ctx, long tlsHandshakeTimeStart, String status)

Overrides reactor.netty5.channel.ChannelMetricsHandler.TlsMetricsHandler.recordTlsHandshakeTime.

Annotations
@Override