Class TaskMetricsBinder

java.lang.Object
com.cotani.metrics.binder.TaskMetricsBinder
All Implemented Interfaces:
MeterBinder

public final class TaskMetricsBinder extends Object implements MeterBinder
Binds cotani-task execution statistics to a MetricsRegistry.
  • Constructor Details

    • TaskMetricsBinder

      public TaskMetricsBinder(String taskName, Supplier<com.cotani.task.metrics.TaskMetricSnapshot> snapshotSupplier)
    • TaskMetricsBinder

      public TaskMetricsBinder(com.cotani.task.metrics.TaskMetrics taskMetrics, String taskName)
  • Method Details

    • bindTo

      public void bindTo(MetricsRegistry registry)
      Description copied from interface: MeterBinder
      Binds metrics to the target metrics registry.
      Specified by:
      bindTo in interface MeterBinder
      Parameters:
      registry - the target metrics registry