Class

kamon.metric.RangeSampler

Atomic

Related Doc: package RangeSampler

Permalink

class Atomic extends BaseAtomicHdrHistogram with RangeSampler with Snapshotting[Distribution] with DistributionSnapshotBuilder with BaseMetricAutoUpdate[RangeSampler, 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
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Atomic
  2. BaseMetricAutoUpdate
  3. DistributionSnapshotBuilder
  4. Snapshotting
  5. RangeSampler
  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[RangeSampler, ForDistributionInstrument, Distribution], tags: TagSet, dynamicRange: DynamicRange)

    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: (RangeSampler) ⇒ Unit, interval: Duration): RangeSampler

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

    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[RangeSampler], interval: Duration): RangeSampler

    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[RangeSampler]): RangeSampler

    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[RangeSampler, ForDistributionInstrument, Distribution]

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def decrement(times: Long): RangeSampler

    Permalink

    Decrements the current value the provided number of times.

    Decrements the current value the provided number of times.

    Definition Classes
    AtomicRangeSampler
  12. def decrement(): RangeSampler

    Permalink

    Decrements the current value by one.

    Decrements the current value by one.

    Definition Classes
    AtomicRangeSampler
  13. def defaultSchedule(): Unit

    Permalink
    Definition Classes
    AtomicBaseMetricAutoUpdate
  14. val dynamicRange: DynamicRange

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

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

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

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

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

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

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

    Permalink
  22. def getEndTimeStamp(): Long

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

    Permalink
  24. def getHighestTrackableValue(): Long

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

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

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

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

    Permalink
  29. def getSubBucketHalfCountMagnitude(): Int

    Permalink
  30. def getTag(): String

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

    Permalink
  32. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  33. def increment(times: Long): RangeSampler

    Permalink

    Increments the current value the provided number of times.

    Increments the current value the provided number of times.

    Definition Classes
    AtomicRangeSampler
  34. def increment(): RangeSampler

    Permalink

    Increments the current value by one.

    Increments the current value by one.

    Definition Classes
    AtomicRangeSampler
  35. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  36. val metric: BaseMetric[RangeSampler, ForDistributionInstrument, Distribution]

    Permalink

    Returns the metric to which this instrument belongs.

    Returns the metric to which this instrument belongs.

    Definition Classes
    AtomicInstrument
  37. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  40. def recordValue(value: Long): Unit

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

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

    Permalink

    Removes this instrument from the metric.

    Removes this instrument from the metric.

    Definition Classes
    Instrument
  43. def reset(): Unit

    Permalink
    Definition Classes
    BaseAtomicHdrHistogram
  44. def resetDistribution(): RangeSampler

    Permalink

    Resets the minimum, maximum and current value indicators.

    Resets the minimum, maximum and current value indicators.

    Definition Classes
    AtomicRangeSampler
  45. def sample(): RangeSampler

    Permalink

    Triggers the sampling of the internal minimum, maximum and current value indicators.

    Triggers the sampling of the internal minimum, maximum and current value indicators.

    Definition Classes
    AtomicRangeSampler
  46. def setEndTimeStamp(startTimeStamp: Long): Unit

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

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

    Permalink
    Definition Classes
    BaseAtomicHdrHistogram → EncodableHistogram
  49. 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
  50. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  51. val tags: TagSet

    Permalink

    Returns the tags used to create this instrument.

    Returns the tags used to create this instrument.

    Definition Classes
    AtomicInstrument
  52. def toString(): String

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

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

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

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

    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 withTag(key: String, value: Boolean): RangeSampler

    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
  58. def withTag(key: String, value: String): RangeSampler

    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
  59. def withTags(tags: TagSet): RangeSampler

    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 RangeSampler

Inherited from Tagging[RangeSampler]

Inherited from BaseAtomicHdrHistogram

Inherited from HdrHistogramInternalState

Inherited from AbstractHistogramBase

Inherited from EncodableHistogram

Inherited from AnyRef

Inherited from Any

Ungrouped