Add the function f
as a gauge with the given name.
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 prefix name
.
Get a Counter with the prefix name
.
Get a Counter with the prefix name
.
Get a Counter with the prefix name
. This method is a convenience for Java
programs, but is no longer needed because StatsReceiver#counter is usable
from java.
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
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, but is no longer needed because StatsReceiver#counter is usable from java.
Time a given function in milliseconds This method will soon be deprecated in favor of com.twitter.finagle.stats.Stat.time.
Time a given function in milliseconds This method will soon be deprecated in favor of com.twitter.finagle.stats.Stat.time.
Time a given function using the given TimeUnit This method will soon be deprecated in favor of com.twitter.finagle.stats.Stat.time.
Time a given function using the given TimeUnit This method will soon be deprecated in favor of com.twitter.finagle.stats.Stat.time.
Time a given function using the given TimeUnit This method will soon be deprecated in favor of com.twitter.finagle.stats.Stat.time.
Time a given function using the given TimeUnit This method will soon be deprecated in favor of com.twitter.finagle.stats.Stat.time.
Time a given future in milliseconds.
Time a given future in milliseconds. This method will soon be deprecated in favor of com.twitter.finagle.stats.Stat.timeFuture.
Time a given future using the given TimeUnit This method will soon be deprecated in favor of com.twitter.finagle.stats.Stat.timeFuture.
Time a given future using the given TimeUnit This method will soon be deprecated in favor of com.twitter.finagle.stats.Stat.timeFuture.
Time a given future using the given TimeUnit This method will soon be deprecated in favor of com.twitter.finagle.stats.Stat.timeFuture.
Time a given future using the given TimeUnit This method will soon be deprecated in favor of com.twitter.finagle.stats.Stat.timeFuture.