- java.lang.Object
-
- io.helidon.webclient.metrics.WebClientMetrics
-
- All Implemented Interfaces:
WebClientService
public class WebClientMetrics extends Object implements WebClientService
Container object for all metrics created by the config.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebClientMetric.Buildercounter()Creates new counter client metric.static WebClientMetricscreate(Config config)Creates new client metrics based on config.static WebClientMetric.BuildergaugeInProgress()Creates new gauge in progress client metric.static WebClientMetric.Buildermeter()Creates new meter client metric.CompletionStage<WebClientServiceRequest>request(WebClientServiceRequest request)Method which is called before send actual request.CompletionStage<WebClientServiceResponse>response(WebClientRequestBuilder.ClientRequest request, WebClientServiceResponse response)Method which is called when the last byte of the response is processed.static WebClientMetric.Buildertimer()Creates new timer client metric.
-
-
-
Method Detail
-
timer
public static WebClientMetric.Builder timer()
Creates new timer client metric.- Returns:
- client metric builder
-
counter
public static WebClientMetric.Builder counter()
Creates new counter client metric.- Returns:
- client metric builder
-
meter
public static WebClientMetric.Builder meter()
Creates new meter client metric.- Returns:
- client metric builder
-
gaugeInProgress
public static WebClientMetric.Builder gaugeInProgress()
Creates new gauge in progress client metric.- Returns:
- client metric builder
-
create
public static WebClientMetrics create(Config config)
Creates new client metrics based on config.- Parameters:
config- config- Returns:
- client metrics instance
-
request
public CompletionStage<WebClientServiceRequest> request(WebClientServiceRequest request)
Description copied from interface:WebClientServiceMethod which is called before send actual request.- Specified by:
requestin interfaceWebClientService- Parameters:
request- client service request- Returns:
- completion stage of the client service request
-
response
public CompletionStage<WebClientServiceResponse> response(WebClientRequestBuilder.ClientRequest request, WebClientServiceResponse response)
Description copied from interface:WebClientServiceMethod which is called when the last byte of the response is processed.- Specified by:
responsein interfaceWebClientService- Parameters:
request- client service requestresponse- client service response- Returns:
- completion stage of the client service response
-
-