Volatile

class Volatile(val metric: BaseMetric[Gauge, ForValueInstrument, Double], val tags: TagSet) extends Gauge with BaseMetricAutoUpdate[Gauge, ForValueInstrument, Double]

Gauge implementation backed by a volatile variable.

trait Gauge
trait Tagging[Gauge]
class Object
trait Matchable
class Any

Value members

Concrete methods

Definition Classes
override def decrement(): Gauge
Definition Classes
override def decrement(times: Double): Gauge
Definition Classes
override def increment(): Gauge
Definition Classes
override def increment(times: Double): Gauge
Definition Classes
override def snapshot(resetState: Boolean): Double
Definition Classes
Snapshotting
override def update(newValue: Double): Gauge
Definition Classes

Inherited methods

def autoUpdate(consumer: Gauge => Unit, interval: Duration): Gauge
Inherited from:
BaseMetricAutoUpdate
def autoUpdate(consumer: Gauge => Unit): Gauge

Schedules a call to the provided consumer with a reference to this histogram as parameter. The schedule uses the default auto-update interval. See the kamon.metric.instrument-factory configuration settings for more details.

Schedules a call to the provided consumer with a reference to this histogram as parameter. The schedule uses the default auto-update interval. See the kamon.metric.instrument-factory configuration settings for more details.

Inherited from:
Instrument
def autoUpdate(consumer: Consumer[Gauge], interval: Duration): Gauge

Schedules a call to the provided consumer with a reference to this histogram as parameter, overriding the metric's auto-update interval.

Schedules a call to the provided consumer with a reference to this histogram as parameter, overriding the metric's auto-update interval.

Inherited from:
Instrument
def autoUpdate(consumer: Consumer[Gauge]): Gauge

Schedules a call to the provided consumer with a reference to this histogram as parameter. The schedule uses the default auto-update interval. See the kamon.metric.instrument-factory configuration settings for more details.

Schedules a call to the provided consumer with a reference to this histogram as parameter. The schedule uses the default auto-update interval. See the kamon.metric.instrument-factory configuration settings for more details.

Inherited from:
Instrument
def defaultSchedule(): Unit
Inherited from:
BaseMetricAutoUpdate
def remove(): Boolean

Removes this instrument from the metric.

Removes this instrument from the metric.

Inherited from:
Instrument
override def withTag(key: String, value: Long): Gauge
Definition Classes
Inherited from:
Instrument
override def withTag(key: String, value: Boolean): Gauge
Definition Classes
Inherited from:
Instrument
override def withTag(key: String, value: String): Gauge
Definition Classes
Inherited from:
Instrument
override def withTags(tags: TagSet): Gauge
Definition Classes
Inherited from:
Instrument

Concrete fields