- java.lang.Object
-
- io.helidon.dbclient.metrics.DbClientMetrics
-
public class DbClientMetrics extends Object
Utility class to obtain various types of metrics to register withDbClient.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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
counter
public static DbClientMetricBuilder counter()
Create a counter builder, to be registered withDbClient.Builder.addService(java.util.function.Supplier)
.- Returns:
- a new counter builder
- See Also:
Counter
-
meter
public static DbClientMetricBuilder meter()
Create a meter builder, to be registered withDbClient.Builder.addService(java.util.function.Supplier)
.- Returns:
- a new meter builder
- See Also:
Meter
-
timer
public static DbClientMetricBuilder timer()
Create a timer builder, to be registered withDbClient.Builder.addService(java.util.function.Supplier)
.- Returns:
- a new timer builder
- See Also:
Timer
-
-