JsonCounter

JsonCounter is a numeric counter that supports increase.

For counting unique actors via HyperLogLog, use JsonDedupCounter instead. Splitting the two roles into separate classes makes invalid method calls (such as add on a numeric counter) compile-time errors.

Properties

Link copied to clipboard
Link copied to clipboard
val value: CounterValue

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun increase(value: Int): JsonCounter

Increases this counter by value as an Int delta.

Increases this counter by value as a Long delta.

Link copied to clipboard
fun toJson(): String
Link copied to clipboard
open override fun toString(): String