object Counter
- Alphabetic
- By Inheritance
- Counter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
LongAdder extends Counter with Snapshotting[Long] with BaseMetricAutoUpdate[Counter, ForValueInstrument, Long]
LongAdder-based counter implementation.
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).
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
delta(supplier: () ⇒ Long): Consumer[Counter]
Creates a counter consumer function that stores the delta between the current and previous value generated by the provided supplier.
Creates a counter consumer function that stores the delta between the current and previous value generated by the provided supplier. This is specially useful when setting up auto-update actions on a counter from a cumulative counter, since Kamon's counters only track the number of events since the last tick.
-
def
delta(supplier: Supplier[Long]): Consumer[Counter]
Creates a counter consumer function that stores the delta between the current and previous value generated by the provided supplier.
Creates a counter consumer function that stores the delta between the current and previous value generated by the provided supplier. This is specially useful when setting up auto-update actions on a counter from a cumulative counter, since Kamon's counters only track the number of events since the last tick.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()