All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.touk.nussknacker.engine.util.metrics.NoOpMetricsProviderForScenario.scala Maven / Gradle / Ivy

There is a newer version: 1.18.0
Show newest version
package pl.touk.nussknacker.engine.util.metrics

import pl.touk.nussknacker.engine.util.service.EspTimer

object NoOpMetricsProviderForScenario extends NoOpMetricsProviderForScenario

trait NoOpMetricsProviderForScenario extends MetricsProviderForScenario {

  override def espTimer(identifier: MetricIdentifier, instantTimerWindowInSeconds: Long): EspTimer =
    EspTimer(() => {}, _ => ())

  override def instantRateMeterWithCount(identifier: MetricIdentifier): RateMeter = () => {}

  override def registerGauge[T](identifier: MetricIdentifier, value: Gauge[T]): Unit = {}

  override def counter(identifier: MetricIdentifier): Counter = _ => {}

  override def histogram(identifier: MetricIdentifier, instantTimerWindowInSeconds: Long): Histogram = _ => {}

  override def remove(metricIdentifier: MetricIdentifier): Unit = {}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy