Packages

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.

Linear Supertypes
BaseMetricAutoUpdate[Timer, ForDistributionInstrument, Distribution], DistributionSnapshotBuilder, Snapshotting[Distribution], Timer, Instrument[Timer, ForDistributionInstrument], Tagging[Timer], BaseAtomicHdrHistogram, HdrHistogramInternalState, AbstractHistogramBase, EncodableHistogram, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Atomic
  2. BaseMetricAutoUpdate
  3. DistributionSnapshotBuilder
  4. Snapshotting
  5. Timer
  6. Instrument
  7. Tagging
  8. BaseAtomicHdrHistogram
  9. HdrHistogramInternalState
  10. AbstractHistogramBase
  11. EncodableHistogram
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Atomic(metric: BaseMetric[Timer, ForDistributionInstrument, Distribution], tags: TagSet, dynamicRange: DynamicRange, clock: Clock)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def autoUpdate(consumer: (Timer) => Unit, interval: Duration): Timer
    Definition Classes
    BaseMetricAutoUpdate
  6. 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
  7. 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
  8. 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
  9. def baseMetric: BaseMetric[Timer, ForDistributionInstrument, Distribution]
    Attributes
    protected
    Definition Classes
    AtomicBaseMetricAutoUpdate
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. def defaultSchedule(): Unit
    Definition Classes
    BaseMetricAutoUpdate
  12. val dynamicRange: DynamicRange
    Definition Classes
    Atomic → DistributionSnapshotBuilder
  13. def encodeIntoCompressedByteBuffer(targetBuffer: ByteBuffer, compressionLevel: Int): Int
    Definition Classes
    BaseAtomicHdrHistogram → EncodableHistogram
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  17. def getAndSetFromCountsArray(index: Int, newValue: Long): Long
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def getCountsArraySize(): Int
  20. def getEndTimeStamp(): Long
    Definition Classes
    BaseAtomicHdrHistogram → EncodableHistogram
  21. def getFromCountsArray(index: Int): Long
  22. def getHighestTrackableValue(): Long
    Definition Classes
    BaseAtomicHdrHistogram
  23. def getMaxValueAsDouble(): Double
    Definition Classes
    BaseAtomicHdrHistogram → EncodableHistogram
  24. def getNeededByteBufferCapacity(): Int
    Definition Classes
    BaseAtomicHdrHistogram → EncodableHistogram
  25. def getStartTimeStamp(): Long
    Definition Classes
    BaseAtomicHdrHistogram → EncodableHistogram
  26. def getSubBucketHalfCount(): Int
  27. def getSubBucketHalfCountMagnitude(): Int
  28. def getTag(): String
    Definition Classes
    BaseAtomicHdrHistogram → EncodableHistogram
  29. def getUnitMagnitude(): Int
  30. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. val metric: BaseMetric[Timer, ForDistributionInstrument, Distribution]

    Returns the metric to which this instrument belongs.

    Returns the metric to which this instrument belongs.

    Definition Classes
    AtomicInstrument
  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. def record(elapsed: Long, unit: TimeUnit): Timer

    Records an elapsed time expressed on the provided time unit

    Records an elapsed time expressed on the provided time unit

    Definition Classes
    AtomicTimer
  37. def record(duration: Duration): Timer

    Records a specified duration, translated to nanoseconds

    Records a specified duration, translated to nanoseconds

    Definition Classes
    AtomicTimer
  38. def record(nanos: Long): Timer

    Records a value on the underlying histogram, handling the case of overflowing the dynamic range

    Records a value on the underlying histogram, handling the case of overflowing the dynamic range

    Definition Classes
    AtomicTimer
  39. def recordValue(value: Long): Unit
    Definition Classes
    BaseAtomicHdrHistogram
  40. def recordValueWithCount(value: Long, count: Long): Unit
    Definition Classes
    BaseAtomicHdrHistogram
  41. def remove(): Boolean

    Removes this instrument from the metric.

    Removes this instrument from the metric.

    Definition Classes
    Instrument
  42. def reset(): Unit
    Definition Classes
    BaseAtomicHdrHistogram
  43. def setEndTimeStamp(startTimeStamp: Long): Unit
    Definition Classes
    BaseAtomicHdrHistogram → EncodableHistogram
  44. def setStartTimeStamp(startTimeStamp: Long): Unit
    Definition Classes
    BaseAtomicHdrHistogram → EncodableHistogram
  45. def setTag(tag: String): Unit
    Definition Classes
    BaseAtomicHdrHistogram → EncodableHistogram
  46. 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
  47. def start(): Started

    Starts a timer that will record the elapsed time between the start and stop instants

    Starts a timer that will record the elapsed time between the start and stop instants

    Definition Classes
    AtomicTimer
  48. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  49. val tags: TagSet

    Returns the tags used to create this instrument.

    Returns the tags used to create this instrument.

    Definition Classes
    AtomicInstrument
  50. def toString(): String
    Definition Classes
    AnyRef → Any
  51. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  54. 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
    InstrumentTagging
  55. 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
    InstrumentTagging
  56. 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
    InstrumentTagging
  57. 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
    InstrumentTagging

Inherited from DistributionSnapshotBuilder

Inherited from Snapshotting[Distribution]

Inherited from Timer

Inherited from Tagging[Timer]

Inherited from BaseAtomicHdrHistogram

Inherited from AbstractHistogramBase

Inherited from EncodableHistogram

Inherited from AnyRef

Inherited from Any

Ungrouped