Package io.helidon.dbclient.metrics.jdbc
Class JdbcMetricsTimer
- java.lang.Object
-
- io.helidon.dbclient.metrics.jdbc.JdbcMetricsTimer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.microprofile.metrics.Timer
Timer.Context
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCount()
double
getFifteenMinuteRate()
double
getFiveMinuteRate()
double
getMeanRate()
double
getOneMinuteRate()
Snapshot
getSnapshot()
Timer.Context
time()
void
time(Runnable event)
<T> T
time(Callable<T> event)
void
update(long duration, TimeUnit unit)
-
-
-
Method Detail
-
time
public Timer.Context time()
-
getCount
public long getCount()
-
getFifteenMinuteRate
public double getFifteenMinuteRate()
- Specified by:
getFifteenMinuteRate
in interfaceMetered
- Specified by:
getFifteenMinuteRate
in interfaceTimer
-
getFiveMinuteRate
public double getFiveMinuteRate()
- Specified by:
getFiveMinuteRate
in interfaceMetered
- Specified by:
getFiveMinuteRate
in interfaceTimer
-
getMeanRate
public double getMeanRate()
- Specified by:
getMeanRate
in interfaceMetered
- Specified by:
getMeanRate
in interfaceTimer
-
getOneMinuteRate
public double getOneMinuteRate()
- Specified by:
getOneMinuteRate
in interfaceMetered
- Specified by:
getOneMinuteRate
in interfaceTimer
-
getSnapshot
public Snapshot getSnapshot()
- Specified by:
getSnapshot
in interfaceSampling
- Specified by:
getSnapshot
in interfaceTimer
-
-