Class WebClientMetrics
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 WebClientService
WebClientService.Chain, WebClientService.TransportChain, WebClientService.WireProtocolChainModifier and TypeInterfaceDescriptionstatic interfaceChain of services.static interfaceTerminal service chain that can expose transport response context after an invocation.static interfaceTerminal service chain that exposes the currently selected wire protocol. -
Method Summary
Modifier and TypeMethodDescriptionstatic io.helidon.webclient.metrics.WebClientMetric.Buildercounter()Creates new counter client metric.static WebClientMetricsCreates new client metrics based on config.static io.helidon.webclient.metrics.WebClientMetric.BuilderCreates 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.Buildermeter()Creates new meter client metric.static io.helidon.webclient.metrics.WebClientMetric.Buildertimer()Creates new timer client metric.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface WebClientService
name, typeModifier and TypeMethodDescriptiondefault Stringname()Name of this implementation, as provided inConfiguredProvider.create(Config, String).default Stringtype()Type of this implementation, to distinguish instances of same type, with differentNamedService.name().
-
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:WebClientServiceInvoke a service, callWebClientService.Chain.proceed(io.helidon.webclient.api.WebClientServiceRequest)to call the next service in the chain.- Specified by:
handlein 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
-