public class TimerImpl extends AbstractMetric implements org.wso2.carbon.metrics.manager.Timer
Timer metric| Constructor and Description |
|---|
TimerImpl(String name,
org.wso2.carbon.metrics.manager.Level level,
com.codahale.metrics.Timer timer) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCount() |
org.wso2.carbon.metrics.manager.Timer.Context |
start() |
<T> T |
time(Callable<T> event) |
void |
update(long duration,
TimeUnit unit) |
getLevel, getName, isEnabledpublic TimerImpl(String name, org.wso2.carbon.metrics.manager.Level level, com.codahale.metrics.Timer timer)
public void update(long duration,
TimeUnit unit)
update in interface org.wso2.carbon.metrics.manager.Timerpublic <T> T time(Callable<T> event) throws Exception
time in interface org.wso2.carbon.metrics.manager.TimerExceptionpublic org.wso2.carbon.metrics.manager.Timer.Context start()
start in interface org.wso2.carbon.metrics.manager.Timerpublic long getCount()
getCount in interface org.wso2.carbon.metrics.manager.TimerCopyright © 2014–2019 WSO2. All rights reserved.