Package reactor.netty.http.client
Class HttpMeterRegistrarAdapter
java.lang.Object
reactor.netty.http.client.HttpMeterRegistrarAdapter
- All Implemented Interfaces:
ConnectionProvider.MeterRegistrar
public abstract class HttpMeterRegistrarAdapter
extends Object
implements ConnectionProvider.MeterRegistrar
An abstract adapter class for registering HTTP/2 or HTTP/3 specific metrics in a connection pool.
This class implements the
ConnectionProvider.MeterRegistrar
interface and provides
methods to register and deregister metrics specific to HTTP/2 or HTTP/3 connections.
This is useful for monitoring and managing the performance of HTTP/2 or HTTP/3 connections in a pool.
- Since:
- 1.2.4
- Author:
- raccoonback
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
registerMetrics
(String poolName, String id, SocketAddress remoteAddress, HttpConnectionPoolMetrics metrics) Registers HTTP/2 or HTTP/3 specific metrics for a connection pool.void
registerMetrics
(String poolName, String id, SocketAddress remoteAddress, ConnectionPoolMetrics metrics) Registers metrics for a connection pool.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface reactor.netty.resources.ConnectionProvider.MeterRegistrar
deRegisterMetrics
-
Constructor Details
-
HttpMeterRegistrarAdapter
public HttpMeterRegistrarAdapter()
-
-
Method Details
-
registerMetrics
public void registerMetrics(String poolName, String id, SocketAddress remoteAddress, ConnectionPoolMetrics metrics) Registers metrics for a connection pool. If the provided metrics are an instance ofHttpConnectionPoolMetrics
, it delegates the call to the abstract methodregisterMetrics(String, String, SocketAddress, HttpConnectionPoolMetrics)
.- Specified by:
registerMetrics
in interfaceConnectionProvider.MeterRegistrar
- Parameters:
poolName
- the name of the connection poolid
- the identifier of the connection poolremoteAddress
- the remote address of the connection poolmetrics
- the metrics to be registered
-
registerMetrics
protected abstract void registerMetrics(String poolName, String id, SocketAddress remoteAddress, HttpConnectionPoolMetrics metrics) Registers HTTP/2 or HTTP/3 specific metrics for a connection pool.- Parameters:
poolName
- the name of the connection poolid
- the identifier of the connection poolremoteAddress
- the remote address of the connection poolmetrics
- the HTTP/2 or HTTP/3 specific metrics to be registered
-