The underlying StatsReceiver to which translated names are passed
Add the function f as a gauge with the given name. The
returned gauge value is only weakly referenced by the
StatsReceiver, and if garbage collected will cease to be a part
of this measurement: thus, it needs to be retained by the
caller. Immortal measurements are made with
provideGauge. As
with
provideGauge, gauges with equal names are added
together.
Add the function f as a gauge with the given name. The
returned gauge value is only weakly referenced by the
StatsReceiver, and if garbage collected will cease to be a part
of this measurement: thus, it needs to be retained by the
caller. Immortal measurements are made with
provideGauge. As
with
provideGauge, gauges with equal names are added
together.
Get a Counter with the description
Get a Counter with the description
Get a Counter with the description.
Get a Counter with the description. This method is a convenience for Java program.
Accurately indicates if this is a NullStatsReceiver.
Accurately indicates if this is a NullStatsReceiver. Because equality is not forwarded via scala.Proxy, this is helpful to check for a NullStatsReceiver.
Register a function to be periodically measured.
Register a function to be periodically measured. This measurement exists in perpetuity. Measurements under the same name are added together.
Specifies the representative receiver.
Specifies the representative receiver. This is in order to expose an object we can use for comparison so that global stats are only reported once per receiver.
Prepend namespace to the names of this receiver.
Prepend namespace to the names of this receiver.
Prepend a suffix value to the next scope.
Prepend a suffix value to the next scope. stats.scopeSuffix("toto").scope("client").counter("adds") will generate /client/toto/adds
The underlying StatsReceiver to which translated names are passed
Get a Stat with the description
Get a Stat with the description
Get a Stat with the description.
Get a Stat with the description. This method is a convenience for Java programs.
Time a given function in milliseconds
Time a given function in milliseconds
Time a given function using the given TimeUnit
Time a given function using the given TimeUnit
Time a given function using the given TimeUnit
Time a given function using the given TimeUnit
Time a given future in milliseconds
Time a given future in milliseconds
Time a given future using the given TimeUnit
Time a given future using the given TimeUnit
Time a given future using the given TimeUnit
Time a given future using the given TimeUnit
A StatsReceiver receiver proxy that translates all counter, stat, and gauge names according to a
translate
function.