java.lang.Object
io.helidon.webclient.metrics.WebClientMetrics
- All Implemented Interfaces:
io.helidon.common.config.NamedService,io.helidon.webclient.spi.WebClientService
Container object for all metrics created by the config.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webclient.spi.WebClientService
io.helidon.webclient.spi.WebClientService.Chain -
Method Summary
Modifier and TypeMethodDescriptionstatic io.helidon.webclient.metrics.WebClientMetric.Buildercounter()Creates new counter client metric.static WebClientMetricscreate(io.helidon.common.config.Config config) Creates new client metrics based on config.static io.helidon.webclient.metrics.WebClientMetric.BuilderCreates new gauge in progress client metric.io.helidon.webclient.api.WebClientServiceResponsehandle(io.helidon.webclient.spi.WebClientService.Chain chain, io.helidon.webclient.api.WebClientServiceRequest request) static io.helidon.webclient.metrics.WebClientMetric.Buildermeter()Creates new meter client metric.static io.helidon.webclient.metrics.WebClientMetric.Buildertimer()Creates new timer client metric.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 io.helidon.webclient.api.WebClientServiceResponse handle(io.helidon.webclient.spi.WebClientService.Chain chain, io.helidon.webclient.api.WebClientServiceRequest request) - Specified by:
handlein interfaceio.helidon.webclient.spi.WebClientService
-