java.lang.Object
io.helidon.webclient.metrics.WebClientMetrics
- All Implemented Interfaces:
WebClientService
Container object for all metrics created by the config.
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.helidon.webclient.metrics.WebClientMetric.Builder
counter()
Creates new counter client metric.static WebClientMetrics
Creates new client metrics based on config.static io.helidon.webclient.metrics.WebClientMetric.Builder
Creates new gauge in progress client metric.static io.helidon.webclient.metrics.WebClientMetric.Builder
meter()
Creates new meter client metric.request
(WebClientServiceRequest request) Method which is called before send actual request.response
(WebClientRequestBuilder.ClientRequest request, WebClientServiceResponse response) Method which is called when the last byte of the response is processed.static io.helidon.webclient.metrics.WebClientMetric.Builder
timer()
Creates new timer client metric.
-
Method Details
-
timer
public static io.helidon.webclient.metrics.WebClientMetric.Builder timer()Creates new timer client metric.- Returns:
- client metric builder
-
counter
public static io.helidon.webclient.metrics.WebClientMetric.Builder counter()Creates new counter client metric.- Returns:
- client metric builder
-
meter
public static io.helidon.webclient.metrics.WebClientMetric.Builder meter()Creates new meter client metric.- Returns:
- client metric builder
-
gaugeInProgress
public static io.helidon.webclient.metrics.WebClientMetric.Builder gaugeInProgress()Creates new gauge in progress client metric.- Returns:
- client metric builder
-
create
Creates new client metrics based on config.- Parameters:
config
- config- Returns:
- client metrics instance
-
request
Description copied from interface:WebClientService
Method which is called before send actual request.- Specified by:
request
in interfaceWebClientService
- Parameters:
request
- client service request- Returns:
- completion stage of the client service request
-
response
public Single<WebClientServiceResponse> response(WebClientRequestBuilder.ClientRequest request, WebClientServiceResponse response) Description copied from interface:WebClientService
Method which is called when the last byte of the response is processed.- Specified by:
response
in interfaceWebClientService
- Parameters:
request
- client service requestresponse
- client service response- Returns:
- completion stage of the client service response
-