F1 - type of the field.F2 - type of the field.F3 - type of the field.public abstract class Timer3<F1,F2,F3> extends Object implements RegistrationHandle
Typical usage in a try-with-resources block:
try (Timer3.Context ctx = timer.start(field)) {
}
| Modifier and Type | Class and Description |
|---|---|
static class |
Timer3.Context |
| Constructor and Description |
|---|
Timer3() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
record(F1 field1,
F2 field2,
F3 field3,
long value,
TimeUnit unit)
Record a value in the distribution.
|
Timer3.Context |
start(F1 field1,
F2 field2,
F3 field3)
Begin a timer for the current block, value will be recorded when closed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremovepublic Timer3.Context start(F1 field1, F2 field2, F3 field3)
field1 - bucket to record the timerfield2 - bucket to record the timerfield3 - bucket to record the timerpublic abstract void record(F1 field1, F2 field2, F3 field3, long value, TimeUnit unit)
field1 - bucket to record the timerfield2 - bucket to record the timerfield3 - bucket to record the timervalue - value to recordunit - time unit of the value