Counter

nl.grons.metrics4.scala.Counter
class Counter(metric: Counter)

A Scala facade class for DropwizardCounter.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def +=(delta: Long): Unit

Increments this counter by delta.

Increments this counter by delta.

Attributes

def -=(delta: Long): Unit

Decrements this counter by delta.

Decrements this counter by delta.

Attributes

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).

Attributes

def count: Long

The current count.

The current count.

Attributes

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.

Attributes

def dec(delta: Long): Unit

Decrements this counter by delta (defaults to 1).

Decrements this counter by delta (defaults to 1).

Attributes

def inc(delta: Long): Unit

Increments this counter by delta (defaults to 1).

Increments this counter by delta (defaults to 1).

Attributes