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, AtomicHistogram, org.HdrHistogram.Histogram, AbstractHistogram, Serializable, 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. AtomicHistogram
  11. Histogram
  12. AbstractHistogram
  13. Serializable
  14. AbstractHistogramBase
  15. EncodableHistogram
  16. AnyRef
  17. 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

Type Members

  1. class AllValues extends Iterable[HistogramIterationValue]

    Permalink
    Definition Classes
    AbstractHistogram
  2. class LinearBucketValues extends Iterable[HistogramIterationValue]

    Permalink
    Definition Classes
    AbstractHistogram
  3. class LogarithmicBucketValues extends Iterable[HistogramIterationValue]

    Permalink
    Definition Classes
    AbstractHistogram
  4. class Percentiles extends Iterable[HistogramIterationValue]

    Permalink
    Definition Classes
    AbstractHistogram
  5. class RecordedValues extends Iterable[HistogramIterationValue]

    Permalink
    Definition Classes
    AbstractHistogram

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. def add(arg0: AbstractHistogram): Unit

    Permalink
    Definition Classes
    AbstractHistogram
    Annotations
    @throws( ... )
  5. def addWhileCorrectingForCoordinatedOmission(arg0: AbstractHistogram, arg1: Long): Unit

    Permalink
    Definition Classes
    AbstractHistogram
  6. def allValues(): AllValues

    Permalink
    Definition Classes
    AbstractHistogram
  7. final def asInstanceOf[T0]: T0

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

    Permalink
    Definition Classes
    BaseMetricAutoUpdate
  9. 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
  10. 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
  11. 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
  12. def baseMetric: BaseMetric[Timer, ForDistributionInstrument, Distribution]

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def copy(): AtomicHistogram

    Permalink
    Definition Classes
    AtomicHistogram → Histogram → AbstractHistogram
  15. def copyCorrectedForCoordinatedOmission(arg0: Long): AtomicHistogram

    Permalink
    Definition Classes
    AtomicHistogram → Histogram → AbstractHistogram
  16. def copyInto(arg0: AbstractHistogram): Unit

    Permalink
    Definition Classes
    AbstractHistogram
  17. def copyIntoCorrectedForCoordinatedOmission(arg0: AbstractHistogram, arg1: Long): Unit

    Permalink
    Definition Classes
    AbstractHistogram
  18. def defaultSchedule(): Unit

    Permalink
    Definition Classes
    BaseMetricAutoUpdate
  19. val dynamicRange: DynamicRange

    Permalink
    Definition Classes
    Atomic → DistributionSnapshotBuilder
  20. def encodeIntoByteBuffer(arg0: ByteBuffer): Int

    Permalink
    Definition Classes
    AbstractHistogram
  21. def encodeIntoCompressedByteBuffer(arg0: ByteBuffer): Int

    Permalink
    Definition Classes
    AbstractHistogram
  22. def encodeIntoCompressedByteBuffer(arg0: ByteBuffer, arg1: Int): Int

    Permalink
    Definition Classes
    AbstractHistogram → EncodableHistogram
  23. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  28. def getCountAtValue(arg0: Long): Long

    Permalink
    Definition Classes
    AbstractHistogram
    Annotations
    @throws( ... )
  29. def getCountBetweenValues(arg0: Long, arg1: Long): Long

    Permalink
    Definition Classes
    AbstractHistogram
    Annotations
    @throws( ... )
  30. def getCountsArraySize(): Int

    Permalink
  31. def getEndTimeStamp(): Long

    Permalink
    Definition Classes
    AbstractHistogram → EncodableHistogram
  32. def getEstimatedFootprintInBytes(): Int

    Permalink
    Definition Classes
    AbstractHistogram
  33. def getFromCountsArray(index: Int): Long

    Permalink
  34. def getHighestTrackableValue(): Long

    Permalink
    Definition Classes
    AbstractHistogram
  35. def getLowestDiscernibleValue(): Long

    Permalink
    Definition Classes
    AbstractHistogram
  36. def getMaxValue(): Long

    Permalink
    Definition Classes
    AbstractHistogram
  37. def getMaxValueAsDouble(): Double

    Permalink
    Definition Classes
    AbstractHistogram → EncodableHistogram
  38. def getMean(): Double

    Permalink
    Definition Classes
    AbstractHistogram
  39. def getMinNonZeroValue(): Long

    Permalink
    Definition Classes
    AbstractHistogram
  40. def getMinValue(): Long

    Permalink
    Definition Classes
    AbstractHistogram
  41. def getNeededByteBufferCapacity(): Int

    Permalink
    Definition Classes
    AbstractHistogram → EncodableHistogram
  42. def getNumberOfSignificantValueDigits(): Int

    Permalink
    Definition Classes
    AbstractHistogram
  43. def getPercentileAtOrBelowValue(arg0: Long): Double

    Permalink
    Definition Classes
    AbstractHistogram
  44. def getStartTimeStamp(): Long

    Permalink
    Definition Classes
    AbstractHistogram → EncodableHistogram
  45. def getStdDeviation(): Double

    Permalink
    Definition Classes
    AbstractHistogram
  46. def getSubBucketHalfCount(): Int

    Permalink
  47. def getSubBucketHalfCountMagnitude(): Int

    Permalink
  48. def getTag(): String

    Permalink
    Definition Classes
    AbstractHistogram → EncodableHistogram
  49. def getTotalCount(): Long

    Permalink
    Definition Classes
    AtomicHistogram → Histogram → AbstractHistogram
  50. def getUnitMagnitude(): Int

    Permalink
  51. def getValueAtPercentile(arg0: Double): Long

    Permalink
    Definition Classes
    AbstractHistogram
  52. def hashCode(): Int

    Permalink
    Definition Classes
    AbstractHistogram → AnyRef → Any
  53. def highestEquivalentValue(arg0: Long): Long

    Permalink
    Definition Classes
    AbstractHistogram
  54. def isAutoResize(): Boolean

    Permalink
    Definition Classes
    AbstractHistogram
  55. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  56. def linearBucketValues(arg0: Long): LinearBucketValues

    Permalink
    Definition Classes
    AbstractHistogram
  57. def logarithmicBucketValues(arg0: Long, arg1: Double): LogarithmicBucketValues

    Permalink
    Definition Classes
    AbstractHistogram
  58. def lowestEquivalentValue(arg0: Long): Long

    Permalink
    Definition Classes
    AbstractHistogram
  59. def medianEquivalentValue(arg0: Long): Long

    Permalink
    Definition Classes
    AbstractHistogram
  60. 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
  61. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  62. def nextNonEquivalentValue(arg0: Long): Long

    Permalink
    Definition Classes
    AbstractHistogram
  63. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  65. def outputPercentileDistribution(arg0: PrintStream, arg1: Int, arg2: Double, arg3: Boolean): Unit

    Permalink
    Definition Classes
    AbstractHistogram
  66. def outputPercentileDistribution(arg0: PrintStream, arg1: Int, arg2: Double): Unit

    Permalink
    Definition Classes
    AbstractHistogram
  67. def outputPercentileDistribution(arg0: PrintStream, arg1: Double): Unit

    Permalink
    Definition Classes
    AbstractHistogram
  68. def percentiles(arg0: Int): Percentiles

    Permalink
    Definition Classes
    AbstractHistogram
  69. 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
  70. def record(duration: Duration): Timer

    Permalink

    Records a specified duration, translated to nanoseconds

    Records a specified duration, translated to nanoseconds

    Definition Classes
    AtomicTimer
  71. 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
  72. def recordValue(arg0: Long): Unit

    Permalink
    Definition Classes
    AbstractHistogram
    Annotations
    @throws( ... )
  73. def recordValueWithCount(arg0: Long, arg1: Long): Unit

    Permalink
    Definition Classes
    AbstractHistogram
    Annotations
    @throws( ... )
  74. def recordValueWithExpectedInterval(arg0: Long, arg1: Long): Unit

    Permalink
    Definition Classes
    AbstractHistogram
    Annotations
    @throws( ... )
  75. def recordedValues(): RecordedValues

    Permalink
    Definition Classes
    AbstractHistogram
  76. def remove(): Boolean

    Permalink

    Removes this instrument from the metric.

    Removes this instrument from the metric.

    Definition Classes
    Instrument
  77. def reset(): Unit

    Permalink
    Definition Classes
    AbstractHistogram
  78. def setAutoResize(arg0: Boolean): Unit

    Permalink
    Definition Classes
    AtomicHistogram → AbstractHistogram
  79. def setEndTimeStamp(arg0: Long): Unit

    Permalink
    Definition Classes
    AbstractHistogram → EncodableHistogram
  80. def setStartTimeStamp(arg0: Long): Unit

    Permalink
    Definition Classes
    AbstractHistogram → EncodableHistogram
  81. def setTag(arg0: String): Unit

    Permalink
    Definition Classes
    AbstractHistogram → EncodableHistogram
  82. def shiftValuesLeft(arg0: Int): Unit

    Permalink
    Definition Classes
    AbstractHistogram
  83. def shiftValuesRight(arg0: Int): Unit

    Permalink
    Definition Classes
    AbstractHistogram
  84. def sizeOfEquivalentValueRange(arg0: Long): Long

    Permalink
    Definition Classes
    AbstractHistogram
  85. 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
  86. 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
  87. def subtract(arg0: AbstractHistogram): Unit

    Permalink
    Definition Classes
    AbstractHistogram
    Annotations
    @throws( ... ) @throws( ... )
  88. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  89. val tags: TagSet

    Permalink

    Returns the tags used to create this instrument.

    Returns the tags used to create this instrument.

    Definition Classes
    AtomicInstrument
  90. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  91. def valuesAreEquivalent(arg0: Long, arg1: Long): Boolean

    Permalink
    Definition Classes
    AbstractHistogram
  92. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  95. 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
  96. 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
  97. 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
  98. 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

Deprecated Value Members

  1. def recordValue(arg0: Long, arg1: Long): Unit

    Permalink
    Definition Classes
    AbstractHistogram
    Annotations
    @deprecated @throws( ... )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from DistributionSnapshotBuilder

Inherited from Snapshotting[Distribution]

Inherited from Timer

Inherited from Tagging[Timer]

Inherited from BaseAtomicHdrHistogram

Inherited from HdrHistogramInternalState

Inherited from AtomicHistogram

Inherited from org.HdrHistogram.Histogram

Inherited from AbstractHistogram

Inherited from Serializable

Inherited from AbstractHistogramBase

Inherited from EncodableHistogram

Inherited from AnyRef

Inherited from Any

Ungrouped