java.lang.Object
io.helidon.webclient.metrics.WebClientMetrics
- All Implemented Interfaces:
NamedService
,WebClientService
Container object for all metrics created by the config.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webclient.spi.WebClientService
WebClientService.Chain
-
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.handle
(WebClientService.Chain chain, WebClientServiceRequest request) Invoke a service, callWebClientService.Chain.proceed(io.helidon.webclient.api.WebClientServiceRequest)
to call the next service in the chain.static io.helidon.webclient.metrics.WebClientMetric.Builder
meter()
Creates new meter client metric.static io.helidon.webclient.metrics.WebClientMetric.Builder
timer()
Creates new timer client metric.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.webclient.spi.WebClientService
name, type
-
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
-
handle
public WebClientServiceResponse handle(WebClientService.Chain chain, WebClientServiceRequest request) Description copied from interface:WebClientService
Invoke a service, callWebClientService.Chain.proceed(io.helidon.webclient.api.WebClientServiceRequest)
to call the next service in the chain.- Specified by:
handle
in interfaceWebClientService
- Parameters:
chain
- to invoke next web client service, or the HTTP call if this is the last servicerequest
- request from the client, or previous services- Returns:
- response to be returned to the client
-