public interface HttpClientMetrics<R,W,S,E,T> extends TCPMetrics<S>
VertxMetrics createMetrics method that created and returned
this metrics object.
DISABLE_METRICS_PROPERTY_NAME, METRICS_ENABLED| Modifier and Type | Method and Description |
|---|---|
default void |
closeEndpoint(String host,
int port,
E endpointMetric)
Called when an endpoint is closed.
|
default W |
connected(E endpointMetric,
S socketMetric,
WebSocket webSocket)
Called when a web socket connects.
|
default E |
createEndpoint(String host,
int port,
int maxPoolSize)
Provides metrics for a particular endpoint
|
default void |
dequeueRequest(E endpointMetric,
T taskMetric)
Called when a request for connection is satisfied.
|
default void |
disconnected(W webSocketMetric)
Called when the web socket has disconnected.
|
default void |
endpointConnected(E endpointMetric,
S socketMetric)
Called when a connection is made to a endpoint.
|
default void |
endpointDisconnected(E endpointMetric,
S socketMetric)
Called when a connection to an endpoint is closed.
|
default T |
enqueueRequest(E endpointMetric)
Called when a connection is requested.
|
default R |
requestBegin(E endpointMetric,
S socketMetric,
SocketAddress localAddress,
SocketAddress remoteAddress,
HttpClientRequest request)
Called when an http client request begins.
|
default void |
requestEnd(R requestMetric)
Callend when an http client request ends.
|
default void |
requestReset(R requestMetric)
Called when the http client request couldn't complete successfully, for instance the connection
was closed before the response was received.
|
default void |
responseBegin(R requestMetric,
HttpClientResponse response)
Called when an http client response begins.
|
default void |
responseEnd(R requestMetric,
HttpClientResponse response)
Called when an http client response has ended
|
default R |
responsePushed(E endpointMetric,
S socketMetric,
SocketAddress localAddress,
SocketAddress remoteAddress,
HttpClientRequest request)
Called when an http client response is pushed.
|
connected, disconnectedbytesRead, bytesWritten, exceptionOccurreddefault E createEndpoint(String host, int port, int maxPoolSize)
host - the endpoint host possibly unresolvedport - the endpoint portmaxPoolSize - the server max pool sizedefault void closeEndpoint(String host, int port, E endpointMetric)
host - the server hostport - the server portendpointMetric - the server metric returned by createEndpoint(java.lang.String, int, int)default T enqueueRequest(E endpointMetric)
endpointMetric - the endpoint metric returned by createEndpoint(java.lang.String, int, int)default void dequeueRequest(E endpointMetric, T taskMetric)
endpointMetric - the endpoint metric returned by createEndpoint(java.lang.String, int, int)default void endpointConnected(E endpointMetric, S socketMetric)
endpointMetric - the endpoint metricsocketMetric - the socket metricdefault void endpointDisconnected(E endpointMetric, S socketMetric)
endpointMetric - the endpoint metricsocketMetric - the socket metricdefault R requestBegin(E endpointMetric, S socketMetric, SocketAddress localAddress, SocketAddress remoteAddress, HttpClientRequest request)
requestEnd(R) when the request
has ended or requestReset(R) if the request/response has failed before.endpointMetric - the endpoint metricsocketMetric - the socket metriclocalAddress - the local addressremoteAddress - the remote addressrequest - the HttpClientRequestdefault void requestEnd(R requestMetric)
requestMetric - the request metricdefault void responseBegin(R requestMetric, HttpClientResponse response)
responseEnd(R, io.vertx.core.http.HttpClientResponse) when the response has ended
or requestReset(R) if the request/response has failed before.requestMetric - the request metricresponse - the HttpClientResponsedefault R responsePushed(E endpointMetric, S socketMetric, SocketAddress localAddress, SocketAddress remoteAddress, HttpClientRequest request)
endpointMetric - the endpoint metricsocketMetric - the socket metriclocalAddress - the local addressremoteAddress - the remote addressrequest - the http server requestdefault void requestReset(R requestMetric)
requestMetric - the request metricdefault void responseEnd(R requestMetric, HttpClientResponse response)
requestMetric - the request metricresponse - the HttpClientResponsedefault W connected(E endpointMetric, S socketMetric, WebSocket webSocket)
endpointMetric - the endpoint metricsocketMetric - the socket metricwebSocket - the server web socketdefault void disconnected(W webSocketMetric)
webSocketMetric - the web socket metricCopyright © 2021 Eclipse. All rights reserved.