Interface Measureable<M>
- All Known Subinterfaces:
ConsumerWorkerFactory<InputT,,MetricsT> Pipeline,ProcessorWorkerFactory<InputT,,OutputT, MetricsT> ProducerWorkerFactory<OutputT,,MetricsT> Queue<T>,Topic<T>
- All Known Implementing Classes:
DefaultPipeline,DefaultQueue,DefaultTopic,MonitoredPipeline,PipelineManager,TaskManager
public interface Measureable<M>
-
Method Summary
Modifier and TypeMethodDescriptionNon-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 aTaskController.- 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
-