class Atomic extends BaseAtomicHdrHistogram with Timer with Snapshotting[Distribution] with DistributionSnapshotBuilder with BaseMetricAutoUpdate[Timer, ForDistributionInstrument, Distribution]
Timer implementation with thread safety guarantees. Instances of this class can be safely shared across threads and updated concurrently. This is, in fact, a close copy of the Histogram.Atomic implementation, modified to match the Timer interface.
- Alphabetic
- By Inheritance
- Atomic
- BaseMetricAutoUpdate
- DistributionSnapshotBuilder
- Snapshotting
- Timer
- Instrument
- Tagging
- BaseAtomicHdrHistogram
- HdrHistogramInternalState
- AbstractHistogramBase
- EncodableHistogram
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Atomic(metric: BaseMetric[Timer, ForDistributionInstrument, Distribution], tags: TagSet, dynamicRange: DynamicRange, clock: Clock)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def autoUpdate(consumer: (Timer) => Unit, interval: Duration): Timer
- Definition Classes
- BaseMetricAutoUpdate
- def autoUpdate(consumer: (Timer) => Unit): Timer
Schedules a call to the provided consumer with a reference to this histogram as parameter.
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.- Definition Classes
- Instrument
- def autoUpdate(consumer: Consumer[Timer], interval: Duration): Timer
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.
- Definition Classes
- Instrument
- def autoUpdate(consumer: Consumer[Timer]): Timer
Schedules a call to the provided consumer with a reference to this histogram as parameter.
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.- Definition Classes
- Instrument
- def baseMetric: BaseMetric[Timer, ForDistributionInstrument, Distribution]
- Attributes
- protected
- Definition Classes
- Atomic → BaseMetricAutoUpdate
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def defaultSchedule(): Unit
- Definition Classes
- BaseMetricAutoUpdate
- val dynamicRange: DynamicRange
- Definition Classes
- Atomic → DistributionSnapshotBuilder
- def encodeIntoCompressedByteBuffer(targetBuffer: ByteBuffer, compressionLevel: Int): Int
- Definition Classes
- BaseAtomicHdrHistogram → EncodableHistogram
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def getAndSetFromCountsArray(index: Int, newValue: Long): Long
- Definition Classes
- BaseAtomicHdrHistogram → HdrHistogramInternalState
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getCountsArraySize(): Int
- Definition Classes
- BaseAtomicHdrHistogram → HdrHistogramInternalState
- def getEndTimeStamp(): Long
- Definition Classes
- BaseAtomicHdrHistogram → EncodableHistogram
- def getFromCountsArray(index: Int): Long
- Definition Classes
- BaseAtomicHdrHistogram → HdrHistogramInternalState
- def getHighestTrackableValue(): Long
- Definition Classes
- BaseAtomicHdrHistogram
- def getMaxValueAsDouble(): Double
- Definition Classes
- BaseAtomicHdrHistogram → EncodableHistogram
- def getNeededByteBufferCapacity(): Int
- Definition Classes
- BaseAtomicHdrHistogram → EncodableHistogram
- def getStartTimeStamp(): Long
- Definition Classes
- BaseAtomicHdrHistogram → EncodableHistogram
- def getSubBucketHalfCount(): Int
- Definition Classes
- BaseAtomicHdrHistogram → HdrHistogramInternalState
- def getSubBucketHalfCountMagnitude(): Int
- Definition Classes
- BaseAtomicHdrHistogram → HdrHistogramInternalState
- def getTag(): String
- Definition Classes
- BaseAtomicHdrHistogram → EncodableHistogram
- def getUnitMagnitude(): Int
- Definition Classes
- BaseAtomicHdrHistogram → HdrHistogramInternalState
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val metric: BaseMetric[Timer, ForDistributionInstrument, Distribution]
Returns the metric to which this instrument belongs.
Returns the metric to which this instrument belongs.
- Definition Classes
- Atomic → Instrument
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def record(elapsed: Long, unit: TimeUnit): Timer
Records an elapsed time expressed on the provided time unit
- def record(duration: Duration): Timer
Records a specified duration, translated to nanoseconds
- def record(nanos: Long): Timer
Records a value on the underlying histogram, handling the case of overflowing the dynamic range
- def recordValue(value: Long): Unit
- Definition Classes
- BaseAtomicHdrHistogram
- def recordValueWithCount(value: Long, count: Long): Unit
- Definition Classes
- BaseAtomicHdrHistogram
- def remove(): Boolean
Removes this instrument from the metric.
Removes this instrument from the metric.
- Definition Classes
- Instrument
- def reset(): Unit
- Definition Classes
- BaseAtomicHdrHistogram
- def setEndTimeStamp(startTimeStamp: Long): Unit
- Definition Classes
- BaseAtomicHdrHistogram → EncodableHistogram
- def setStartTimeStamp(startTimeStamp: Long): Unit
- Definition Classes
- BaseAtomicHdrHistogram → EncodableHistogram
- def setTag(tag: String): Unit
- Definition Classes
- BaseAtomicHdrHistogram → EncodableHistogram
- def snapshot(resetState: Boolean): Distribution
Creates a snapshot for an instrument.
Creates a snapshot for an instrument. If the resetState flag is set to true, the internal state of the instrument will be reset, if applicable.
- Definition Classes
- DistributionSnapshotBuilder → Snapshotting
- def start(): Started
Starts a timer that will record the elapsed time between the start and stop instants
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val tags: TagSet
Returns the tags used to create this instrument.
Returns the tags used to create this instrument.
- Definition Classes
- Atomic → Instrument
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withTag(key: String, value: Long): Timer
Returns an instrument with one additional tag defined by the provided key and value pair.
Returns an instrument with one additional tag defined by the provided key and value pair.
- Definition Classes
- Instrument → Tagging
- def withTag(key: String, value: Boolean): Timer
Returns an instrument with one additional tag defined by the provided key and value pair.
Returns an instrument with one additional tag defined by the provided key and value pair.
- Definition Classes
- Instrument → Tagging
- def withTag(key: String, value: String): Timer
Returns an instrument with one additional tag defined by the provided key and value pair.
Returns an instrument with one additional tag defined by the provided key and value pair.
- Definition Classes
- Instrument → Tagging
- def withTags(tags: TagSet): Timer
Returns an instrument with additional tags from the provided TagSet.
Returns an instrument with additional tags from the provided TagSet.
- Definition Classes
- Instrument → Tagging