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,
double delta)
Convenience method equivalent to
StatsDClient.recordGaugeDelta(String, long) but for double deltas. |
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,
double value)
Convenience method equivalent to
StatsDClient.recordGaugeValue(String, long) but for double values. |
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, gauge, increment, incrementCounter, recordExecutionTime, recordExecutionTimeToNow, set, time
public void stop()
StatsDClient
public void count(java.lang.String aspect, long delta, double sampleRate)
StatsDClient
This 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)
StatsDClient
This 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 recordGaugeValue(java.lang.String aspect, double value)
StatsDClient
StatsDClient.recordGaugeValue(String, long)
but for double values.public void recordGaugeDelta(java.lang.String aspect, long delta)
StatsDClient
This 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 recordGaugeDelta(java.lang.String aspect, double delta)
StatsDClient
StatsDClient.recordGaugeDelta(String, long)
but for double deltas.public void recordSetEvent(java.lang.String aspect, java.lang.String value)
StatsDClient
This 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)
StatsDClient
This 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.