Class TaskMetricsBinder
java.lang.Object
com.cotani.metrics.binder.TaskMetricsBinder
- All Implemented Interfaces:
MeterBinder
Binds
cotani-task execution statistics to a MetricsRegistry.-
Constructor Summary
ConstructorsConstructorDescriptionTaskMetricsBinder(com.cotani.task.metrics.TaskMetrics taskMetrics, String taskName) TaskMetricsBinder(String taskName, Supplier<com.cotani.task.metrics.TaskMetricSnapshot> snapshotSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoidbindTo(MetricsRegistry registry) Binds metrics to the target metrics registry.
-
Constructor Details
-
TaskMetricsBinder
-
TaskMetricsBinder
-
-
Method Details
-
bindTo
Description copied from interface:MeterBinderBinds metrics to the target metrics registry.- Specified by:
bindToin interfaceMeterBinder- Parameters:
registry- the target metrics registry
-