Interface HttpClientMetrics<R,W>
- All Superinterfaces:
Metrics, WebSocketMetrics<W>
The http client metrics SPI that Vert.x will use to call when http client events occur.
The thread model for the http server metrics depends on the actual context thats started the server.
Event loop context
Unless specified otherwise, all the methods on this object including the methods inherited from the super interfaces are invoked with the thread of the http client and therefore are the same than theVertxMetrics createMetrics method that created and returned
this metrics object.
Worker context
Unless specified otherwise, all the methods on this object including the methods inherited from the super interfaces are invoked with a worker thread.- Author:
- Nick Scavelli
-
Field Summary
Fields inherited from interface Metrics
METRICS_ENABLED -
Method Summary
Modifier and TypeMethodDescriptiondefault ClientMetrics<R, HttpRequest, HttpResponse> createEndpointMetrics(SocketAddress remoteAddress, int maxPoolSize) Provides metrics for a particular endpointMethods inherited from interface WebSocketMetrics
connected, disconnected
-
Method Details
-
createEndpointMetrics
default ClientMetrics<R, HttpRequest, HttpResponse> createEndpointMetrics(SocketAddress remoteAddress, int maxPoolSize) Provides metrics for a particular endpoint- Parameters:
remoteAddress- the endpoint remote addressmaxPoolSize- the client max pool size- Returns:
- the endpoint metric
-