| Modifier and Type | Class and Description |
|---|---|
class |
TimerImpl.ContextImpl |
Timer.Context, Timer.Metrics| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FAILED |
static java.lang.String |
SUCCESSFUL |
static java.lang.String |
TOTAL |
| Constructor and Description |
|---|
TimerImpl(java.lang.String timerName,
com.codahale.metrics.MetricRegistry metricRegistry) |
| Modifier and Type | Method and Description |
|---|---|
Timer.Context |
context()
Creates a Timer context and starts the timer
|
com.codahale.metrics.MetricRegistry |
getMetricRegistry()
Returns the MetricRegistry of this Timer.
|
Timer.Metrics |
getMetrics()
Returns the Metrics of this Timer.
|
java.lang.String |
getName()
Returns the name of this Timer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecorateCallable, decorateCheckedFunction, decorateCheckedRunnable, decorateCheckedSupplier, decorateCompletionStageSupplier, decorateFunction, decorateRunnable, decorateSupplier, executeCallable, executeCompletionStageSupplier, executeRunnable, executeSupplier, of, ofMetricRegistrypublic static final java.lang.String SUCCESSFUL
public static final java.lang.String TOTAL
public static final java.lang.String FAILED
public TimerImpl(java.lang.String timerName,
com.codahale.metrics.MetricRegistry metricRegistry)
public Timer.Context context()
Timerpublic java.lang.String getName()
Timerpublic com.codahale.metrics.MetricRegistry getMetricRegistry()
TimergetMetricRegistry in interface Timerpublic Timer.Metrics getMetrics()
TimergetMetrics in interface Timer