public final class NoOpStatsDClient extends ConvenienceMethodProvidingStatsDClient
| Constructor and Description |
|---|
NoOpStatsDClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
count(java.lang.String aspect,
long delta,
double sampleRate)
Adjusts the specified counter by a given delta.
|
void |
recordExecutionTime(java.lang.String aspect,
long timeInMs,
double sampleRate)
Adjusts the specified counter by a given delta.
|
void |
recordGaugeDelta(java.lang.String aspect,
long delta)
Records a change in the value of the specified named gauge.
|
void |
recordGaugeValue(java.lang.String aspect,
long value)
Records the latest fixed value for the specified named gauge.
|
void |
recordSetEvent(java.lang.String aspect,
java.lang.String value)
StatsD supports counting unique occurrences of events between flushes, Call this method to records an occurrence
of the specified named event.
|
void |
stop()
Cleanly shut down this StatsD client.
|
count, decrement, decrementCounter, gauge, increment, incrementCounter, recordExecutionTime, recordExecutionTimeToNow, set, timepublic void stop()
StatsDClientpublic void count(java.lang.String aspect,
long delta,
double sampleRate)
StatsDClientThis method is non-blocking and is guaranteed not to throw an exception.
aspect - the name of the counter to adjustdelta - the amount to adjust the counter bysampleRate - the sampling rate being employed. For example, a rate of 0.1 would tell StatsD that this counter is being sent
sampled every 1/10th of the time.public void recordGaugeValue(java.lang.String aspect,
long value)
StatsDClientThis method is non-blocking and is guaranteed not to throw an exception.
aspect - the name of the gaugevalue - the new reading of the gaugepublic void recordGaugeDelta(java.lang.String aspect,
long delta)
StatsDClientThis method is non-blocking and is guaranteed not to throw an exception.
aspect - the name of the gaugedelta - the +/- delta to apply to the gaugepublic void recordSetEvent(java.lang.String aspect,
java.lang.String value)
StatsDClientThis method is non-blocking and is guaranteed not to throw an exception.
aspect - the name of the setvalue - the value to be added to the setpublic void recordExecutionTime(java.lang.String aspect,
long timeInMs,
double sampleRate)
StatsDClientThis method is non-blocking and is guaranteed not to throw an exception.
aspect - the name of the counter to adjustsampleRate - the sampling rate being employed. For example, a rate of 0.1 would tell StatsD that this timer is being sent
sampled every 1/10th of the time, so that it updates its timer_counters appropriately.