public interface ClientMetrics<M,T,Req,Resp> extends Metrics
DISABLE_METRICS_PROPERTY_NAME, METRICS_ENABLED| Modifier and Type | Method and Description | 
|---|---|
| default void | dequeueRequest(T taskMetric)Called when a request for connection is satisfied. | 
| default T | enqueueRequest()Called when a connection is requested. | 
| default M | requestBegin(String uri,
            Req request)Called when a client request begins. | 
| default void | requestEnd(M requestMetric)Calls  requestEnd(Object, long)with-1L | 
| default void | requestEnd(M requestMetric,
          long bytesWritten)Called when the client request ends. | 
| default void | requestReset(M requestMetric)Called when the client request couldn't complete successfully, for instance the connection
 was closed before the response was received. | 
| default void | responseBegin(M requestMetric,
             Resp response)Called when the client response begins. | 
| default void | responseEnd(M requestMetric)Calls  responseEnd(Object, long)with-1L | 
| default void | responseEnd(M requestMetric,
           long bytesRead)Called when the client response has ended | 
default T enqueueRequest()
default void dequeueRequest(T taskMetric)
default M requestBegin(String uri, Req request)
requestEnd(M) when the request
 has ended or requestReset(M) if the request/response has failed before.
 The request uri is an arbitrary URI that depends on the client, e.g an HTTP request uri, a SQL query, etc...
uri - an arbitrary urirequest - the request objectdefault void requestEnd(M requestMetric)
requestEnd(Object, long) with -1Ldefault void requestEnd(M requestMetric, long bytesWritten)
requestMetric - the request metricbytesWritten - the number of bytes written or -1 when it is not knowndefault void responseBegin(M requestMetric, Resp response)
responseEnd(M) when the response has ended
  or requestReset(M) if the request/response has failed before.requestMetric - the request metricresponse - the response objectdefault void requestReset(M requestMetric)
requestMetric - the request metricdefault void responseEnd(M requestMetric)
responseEnd(Object, long) with -1Ldefault void responseEnd(M requestMetric, long bytesRead)
requestMetric - the request metricbytesRead - the number of bytes read or -1 when it is not knownCopyright © 2021 Eclipse. All rights reserved.