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:
-
DbClientServiceBase.DbClientServiceBuilderBase.statementTypes(io.helidon.dbclient.DbStatementType...)
DbClientServiceBase.DbClientServiceBuilderBase.statementNames(String...)
DbClientServiceBase.DbClientServiceBuilderBase.statementPredicate(java.util.function.Predicate)
DbClientMetricBuilderBase.success(boolean)
DbClientMetricBuilderBase.errors(boolean)
-
Method Summary
Modifier and TypeMethodDescriptionstatic DbClientMetricBuilder
counter()
Create a counter builder, to be registered withDbClient.Builder.addService(java.util.function.Supplier)
.static DbClientMetricBuilder
meter()
Create a meter builder, to be registered withDbClient.Builder.addService(java.util.function.Supplier)
.static DbClientMetricBuilder
timer()
Create a timer builder, to be registered withDbClient.Builder.addService(java.util.function.Supplier)
.
-
Method Details
-
counter
Create a counter builder, to be registered withDbClient.Builder.addService(java.util.function.Supplier)
.- Returns:
- a new counter builder
- See Also:
-
meter
Create a meter builder, to be registered withDbClient.Builder.addService(java.util.function.Supplier)
.- Returns:
- a new meter builder
- See Also:
-
timer
Create a timer builder, to be registered withDbClient.Builder.addService(java.util.function.Supplier)
.- Returns:
- a new timer builder
- See Also:
-