Interface HttpClientMetrics<R,W>

All Superinterfaces:
Metrics, WebSocketMetrics<W>

public interface HttpClientMetrics<R,W> extends 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 the VertxMetrics 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
  • Method Details

    • createEndpointMetrics

      default ClientMetrics<R, HttpRequest, HttpResponse> createEndpointMetrics(SocketAddress remoteAddress, int maxPoolSize)
      Provides metrics for a particular endpoint
      Parameters:
      remoteAddress - the endpoint remote address
      maxPoolSize - the client max pool size
      Returns:
      the endpoint metric