Interface Measureable<M>

Type Parameters:
M - the type of the metrics
All Known Subinterfaces:
ConsumerWorkerFactory<InputT,MetricsT>, MeasuredConsumerWorker<InputT,MetricsT>, MeasuredProcessorWorker<InputT,OutputT,MetricsT>, MeasuredProducerWorker<OutputT,MetricsT>, Pipeline, ProcessorWorkerFactory<InputT,OutputT,MetricsT>, ProducerWorkerFactory<OutputT,MetricsT>, Queue<T>, Topic<T>
All Known Implementing Classes:
DefaultConsumerWorkerFactory, DefaultPipeline, DefaultProcessorWorkerFactory, DefaultProducerWorkerFactory, DefaultQueue, DefaultTopic, MonitoredPipeline, PipelineManager, SingletonConsumerWorkerFactory, SingletonProcessorWorkerFactory, SingletonProducerWorkerFactory, TaskManager

public interface Measureable<M>
An object that can produce metrics.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Non-destructive check of the metrics.
    Destructive read of the metrics.
  • Method Details

    • checkMetrics

      M checkMetrics()
      Non-destructive check of the metrics. This should be used to check the state of metrics without clearing them, for example in a TaskController.
      Returns:
      the metrics
    • flushMetrics

      M flushMetrics()
      Destructive read of the metrics. This should be used to check and reset the state of metrics, for example by the metrics checking thread.
      Returns:
      the metrics