Class

kamon.metric.Timer

Atomic

Related Doc: package Timer

Permalink

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. All

Instance Constructors

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

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def autoUpdate(consumer: (Timer) ⇒ Unit, interval: Duration): Timer

    Permalink
    Definition Classes
    BaseMetricAutoUpdate
  6. def autoUpdate(consumer: (Timer) ⇒ Unit): Timer

    Permalink

    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

    Permalink

    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

    Permalink

    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]

    Permalink
    Attributes
    protected
    Definition Classes
    AtomicBaseMetricAutoUpdate
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def defaultSchedule(): Unit

    Permalink
    Definition Classes
    BaseMetricAutoUpdate
  12. val dynamicRange: DynamicRange

    Permalink
    Definition Classes
    Atomic → DistributionSnapshotBuilder
  13. def encodeIntoCompressedByteBuffer(targetBuffer: ByteBuffer, compressionLevel: Int): Int

    Permalink
    Definition Classes
    BaseAtomicHdrHistogram → EncodableHistogram
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def getAndSetFromCountsArray(index: Int, newValue: Long): Long

    Permalink
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def getCountsArraySize(): Int

    Permalink
  20. def getEndTimeStamp(): Long

    Permalink
    Definition Classes
    BaseAtomicHdrHistogram → EncodableHistogram
  21. def getFromCountsArray(index: Int): Long

    Permalink
  22. def getHighestTrackableValue(): Long

    Permalink
    Definition Classes
    BaseAtomicHdrHistogram
  23. def getMaxValueAsDouble(): Double

    Permalink
    Definition Classes
    BaseAtomicHdrHistogram → EncodableHistogram
  24. def getNeededByteBufferCapacity(): Int

    Permalink
    Definition Classes
    BaseAtomicHdrHistogram → EncodableHistogram
  25. def getStartTimeStamp(): Long

    Permalink
    Definition Classes
    BaseAtomicHdrHistogram → EncodableHistogram
  26. def getSubBucketHalfCount(): Int

    Permalink
  27. def getSubBucketHalfCountMagnitude(): Int

    Permalink
  28. def getTag(): String

    Permalink
    Definition Classes
    BaseAtomicHdrHistogram → EncodableHistogram
  29. def getUnitMagnitude(): Int

    Permalink
  30. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  31. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  32. val metric: BaseMetric[Timer, ForDistributionInstrument, Distribution]

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  34. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. def record(elapsed: Long, unit: TimeUnit): Timer

    Permalink

    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

    Permalink

    Records a specified duration, translated to nanoseconds

    Records a specified duration, translated to nanoseconds

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

    Permalink

    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

    Permalink
    Definition Classes
    BaseAtomicHdrHistogram
  40. def recordValueWithCount(value: Long, count: Long): Unit

    Permalink
    Definition Classes
    BaseAtomicHdrHistogram
  41. def remove(): Boolean

    Permalink

    Removes this instrument from the metric.

    Removes this instrument from the metric.

    Definition Classes
    Instrument
  42. def reset(): Unit

    Permalink
    Definition Classes
    BaseAtomicHdrHistogram
  43. def setEndTimeStamp(startTimeStamp: Long): Unit

    Permalink
    Definition Classes
    BaseAtomicHdrHistogram → EncodableHistogram
  44. def setStartTimeStamp(startTimeStamp: Long): Unit

    Permalink
    Definition Classes
    BaseAtomicHdrHistogram → EncodableHistogram
  45. def setTag(tag: String): Unit

    Permalink
    Definition Classes
    BaseAtomicHdrHistogram → EncodableHistogram
  46. def snapshot(resetState: Boolean): Distribution

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  49. val tags: TagSet

    Permalink

    Returns the tags used to create this instrument.

    Returns the tags used to create this instrument.

    Definition Classes
    AtomicInstrument
  50. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  51. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. def withTag(key: String, value: Long): Timer

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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 HdrHistogramInternalState

Inherited from AbstractHistogramBase

Inherited from EncodableHistogram

Inherited from AnyRef

Inherited from Any

Ungrouped