java.lang.Object
io.helidon.dbclient.metrics.DbClientMetrics
Utility class to obtain various types of metrics to register
with
DbClient.Builder.addService(io.helidon.dbclient.DbClientService)
.
Metrics can be limited to a set of statement types or statement names, and also configured to
meter success, failure or both.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic DbClientMetricBuilder
<? extends DbClientMetricBuilder<?, ?>, ? extends DbClientServiceBase> counter()
Create a counter builder, to be registered withDbClient.Builder.addService(java.util.function.Supplier)
.static DbClientMetricBuilder
<? extends DbClientMetricBuilder<?, ?>, ? extends DbClientServiceBase> timer()
Create a timer builder, to be registered withDbClient.Builder.addService(java.util.function.Supplier)
.
-
Method Details
-
counter
public static DbClientMetricBuilder<? extends DbClientMetricBuilder<?,?>, counter()? extends DbClientServiceBase> Create a counter builder, to be registered withDbClient.Builder.addService(java.util.function.Supplier)
.- Returns:
- a new counter builder
- See Also:
-
timer
public static DbClientMetricBuilder<? extends DbClientMetricBuilder<?,?>, timer()? extends DbClientServiceBase> Create a timer builder, to be registered withDbClient.Builder.addService(java.util.function.Supplier)
.- Returns:
- a new timer builder
- See Also:
-