Class

kamon.metric.Counter

LongAdder

Related Doc: package Counter

Permalink

class LongAdder extends Counter with Snapshotting[Long] with BaseMetricAutoUpdate[Counter, ForValueInstrument, Long]

LongAdder-based counter implementation. LongAdder counters are safe to share across threads and provide superior write performance over Atomic values in cases where the writes largely outweigh the reads, which is the common case in Kamon counters (writing every time something needs to be tracked, reading roughly once per minute).

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LongAdder
  2. BaseMetricAutoUpdate
  3. Snapshotting
  4. Counter
  5. Instrument
  6. Tagging
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LongAdder(metric: BaseMetric[Counter, ForValueInstrument, Long], tags: TagSet)

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

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

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

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

    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[Counter, ForValueInstrument, Long]

    Permalink
    Definition Classes
    LongAdderBaseMetricAutoUpdate
  10. def clone(): AnyRef

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

    Permalink
    Definition Classes
    BaseMetricAutoUpdate
  12. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. def increment(times: Long): Counter

    Permalink

    Increments the counter by the provided times.

    Increments the counter by the provided times.

    Definition Classes
    LongAdderCounter
  18. def increment(): Counter

    Permalink

    Increments the counter by one.

    Increments the counter by one.

    Definition Classes
    LongAdderCounter
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. val metric: BaseMetric[Counter, ForValueInstrument, Long]

    Permalink

    Returns the metric to which this instrument belongs.

    Returns the metric to which this instrument belongs.

    Definition Classes
    LongAdderInstrument
  21. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  24. def remove(): Boolean

    Permalink

    Removes this instrument from the metric.

    Removes this instrument from the metric.

    Definition Classes
    Instrument
  25. def snapshot(resetState: Boolean): Long

    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
    LongAdder → Snapshotting
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. val tags: TagSet

    Permalink

    Returns the tags used to create this instrument.

    Returns the tags used to create this instrument.

    Definition Classes
    LongAdderInstrument
  28. def toString(): String

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

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

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

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

    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
  33. def withTag(key: String, value: Boolean): Counter

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

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

    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 Snapshotting[Long]

Inherited from Counter

Inherited from Tagging[Counter]

Inherited from AnyRef

Inherited from Any

Ungrouped