public class DisabledTimer extends com.codahale.metrics.Timer implements DisabledMetric
Constructor and Description |
---|
DisabledTimer()
Constructor.
|
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 void update(long duration, TimeUnit unit)
update
in class com.codahale.metrics.Timer
public <T> T time(Callable<T> event) throws Exception
time
in class com.codahale.metrics.Timer
Exception
public com.codahale.metrics.Timer.Context time()
time
in class com.codahale.metrics.Timer
public long getCount()
getCount
in interface com.codahale.metrics.Counting
getCount
in interface com.codahale.metrics.Metered
getCount
in class com.codahale.metrics.Timer
public double getFifteenMinuteRate()
getFifteenMinuteRate
in interface com.codahale.metrics.Metered
getFifteenMinuteRate
in class com.codahale.metrics.Timer
public double getFiveMinuteRate()
getFiveMinuteRate
in interface com.codahale.metrics.Metered
getFiveMinuteRate
in class com.codahale.metrics.Timer
public double getMeanRate()
getMeanRate
in interface com.codahale.metrics.Metered
getMeanRate
in class com.codahale.metrics.Timer
public double getOneMinuteRate()
getOneMinuteRate
in interface com.codahale.metrics.Metered
getOneMinuteRate
in class com.codahale.metrics.Timer
public com.codahale.metrics.Snapshot getSnapshot()
getSnapshot
in interface com.codahale.metrics.Sampling
getSnapshot
in class com.codahale.metrics.Timer
Copyright © 1999–2018 Shibboleth Consortium. All rights reserved.