public abstract class ConvenienceMethodProvidingStatsDClient extends java.lang.Object implements StatsDClient
| Constructor and Description |
|---|
ConvenienceMethodProvidingStatsDClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
count(java.lang.String aspect,
long delta)
Adjusts the specified counter by a given delta.
|
void |
decrement(java.lang.String aspect)
Convenience method equivalent to
decrementCounter(String). |
void |
decrementCounter(java.lang.String aspect)
Convenience method equivalent to
count(String, long) with a value of -1. |
void |
gauge(java.lang.String aspect,
long value)
Convenience method equivalent to
StatsDClient.recordGaugeValue(String, long). |
void |
increment(java.lang.String aspect)
Convenience method equivalent to
incrementCounter(String). |
void |
incrementCounter(java.lang.String aspect)
Convenience method equivalent to
count(String, long) with a value of 1. |
void |
recordExecutionTime(java.lang.String aspect,
long timeInMs)
Records an execution time in milliseconds for the specified named operation.
|
void |
recordExecutionTimeToNow(java.lang.String aspect,
long systemTimeMillisAtStart)
Records an execution time in milliseconds for the specified named operation.
|
void |
set(java.lang.String aspect,
java.lang.String eventName)
Convenience method equivalent to
StatsDClient.recordSetEvent(String, String). |
void |
time(java.lang.String aspect,
long timeInMs)
Convenience method equivalent to
recordExecutionTime(String, long). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, recordExecutionTime, recordGaugeDelta, recordGaugeValue, recordSetEvent, stoppublic ConvenienceMethodProvidingStatsDClient()
public final void count(java.lang.String aspect,
long delta)
StatsDClientThis method is non-blocking and is guaranteed not to throw an exception.
count in interface StatsDClientaspect - the name of the counter to adjustdelta - the amount to adjust the counter bypublic final void incrementCounter(java.lang.String aspect)
count(String, long) with a value of 1.incrementCounter in interface StatsDClientaspect - the name of the counter to incrementpublic final void increment(java.lang.String aspect)
incrementCounter(String).increment in interface StatsDClientpublic final void decrementCounter(java.lang.String aspect)
count(String, long) with a value of -1.decrementCounter in interface StatsDClientaspect - the name of the counter to decrementpublic final void decrement(java.lang.String aspect)
decrementCounter(String).decrement in interface StatsDClientpublic final void gauge(java.lang.String aspect,
long value)
StatsDClient.recordGaugeValue(String, long).gauge in interface StatsDClientpublic final void set(java.lang.String aspect,
java.lang.String eventName)
StatsDClient.recordSetEvent(String, String).set in interface StatsDClientpublic final void time(java.lang.String aspect,
long timeInMs)
recordExecutionTime(String, long).time in interface StatsDClientpublic final void recordExecutionTime(java.lang.String aspect,
long timeInMs)
StatsDClientThis method is non-blocking and is guaranteed not to throw an exception.
recordExecutionTime in interface StatsDClientaspect - the name of the timed operationtimeInMs - the time in millisecondspublic void recordExecutionTimeToNow(java.lang.String aspect,
long systemTimeMillisAtStart)
StatsDClientSystem.currentTimeMillis())
This method is non-blocking and is guaranteed not to throw an exception.
recordExecutionTimeToNow in interface StatsDClientaspect - the name of the timed operation