Counter

class Counter(metric: Counter)

A Scala facade class for DropwizardCounter.

class Object
trait Matchable
class Any

Value members

Concrete methods

def +=(delta: Long): Unit

Increments this counter by delta.

Increments this counter by delta.

def -=(delta: Long): Unit

Decrements this counter by delta.

Decrements this counter by delta.

def count[A, B](pf: PartialFunction[A, B]): PartialFunction[A, B]

Wraps partial function pf, incrementing this counter for every execution (defined or not).

Wraps partial function pf, incrementing this counter for every execution (defined or not).

def count: Long

The current count.

The current count.

def countConcurrency[A](f: => A): A

Increase this counter at the start of evaluating f, decrease when finished, and finally return the result of f.

Increase this counter at the start of evaluating f, decrease when finished, and finally return the result of f.

def dec(delta: Long): Unit

Decrements this counter by delta (defaults to 1).

Decrements this counter by delta (defaults to 1).

def inc(delta: Long): Unit

Increments this counter by delta (defaults to 1).

Increments this counter by delta (defaults to 1).