public abstract class HttpMeterRegistrarAdapter extends Object implements ConnectionProvider.MeterRegistrar
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.
Constructor and Description |
---|
HttpMeterRegistrarAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
registerMetrics(String poolName,
String id,
SocketAddress remoteAddress,
ConnectionPoolMetrics metrics)
Registers metrics for a connection pool.
|
protected abstract void |
registerMetrics(String poolName,
String id,
SocketAddress remoteAddress,
HttpConnectionPoolMetrics metrics)
Registers HTTP/2 or HTTP/3 specific metrics for a connection pool.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deRegisterMetrics
public void registerMetrics(String poolName, String id, SocketAddress remoteAddress, ConnectionPoolMetrics metrics)
HttpConnectionPoolMetrics
, it delegates the call to the abstract method
registerMetrics(String, String, SocketAddress, HttpConnectionPoolMetrics)
.registerMetrics
in interface ConnectionProvider.MeterRegistrar
poolName
- the name of the connection poolid
- the identifier of the connection poolremoteAddress
- the remote address of the connection poolmetrics
- the metrics to be registeredprotected abstract void registerMetrics(String poolName, String id, SocketAddress remoteAddress, HttpConnectionPoolMetrics metrics)
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