public class CompositeForwardingTimer
extends com.codahale.metrics.Timer
| Constructor and Description |
|---|
CompositeForwardingTimer(com.codahale.metrics.Timer mainDelegate,
MetricProvider<com.codahale.metrics.Timer> supplementaryMetricProvider) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCount() |
double |
getFifteenMinuteRate() |
double |
getFiveMinuteRate() |
double |
getMeanRate() |
double |
getOneMinuteRate() |
com.codahale.metrics.Snapshot |
getSnapshot() |
com.codahale.metrics.Timer.Context |
time() |
<T> T |
time(Callable<T> event) |
void |
update(long duration,
TimeUnit unit) |
public CompositeForwardingTimer(com.codahale.metrics.Timer mainDelegate,
MetricProvider<com.codahale.metrics.Timer> supplementaryMetricProvider)
public void update(long duration,
TimeUnit unit)
update in class com.codahale.metrics.Timerpublic <T> T time(Callable<T> event) throws Exception
time in class com.codahale.metrics.TimerExceptionpublic com.codahale.metrics.Timer.Context time()
time in class com.codahale.metrics.Timerpublic long getCount()
getCount in interface com.codahale.metrics.CountinggetCount in interface com.codahale.metrics.MeteredgetCount in class com.codahale.metrics.Timerpublic double getFifteenMinuteRate()
getFifteenMinuteRate in interface com.codahale.metrics.MeteredgetFifteenMinuteRate in class com.codahale.metrics.Timerpublic double getFiveMinuteRate()
getFiveMinuteRate in interface com.codahale.metrics.MeteredgetFiveMinuteRate in class com.codahale.metrics.Timerpublic double getMeanRate()
getMeanRate in interface com.codahale.metrics.MeteredgetMeanRate in class com.codahale.metrics.Timerpublic double getOneMinuteRate()
getOneMinuteRate in interface com.codahale.metrics.MeteredgetOneMinuteRate in class com.codahale.metrics.Timerpublic com.codahale.metrics.Snapshot getSnapshot()
getSnapshot in interface com.codahale.metrics.SamplinggetSnapshot in class com.codahale.metrics.TimerCopyright © 2016. All rights reserved.