Interface Timer
- All Superinterfaces:
AutoCloseable,org.opendaylight.yangtools.concepts.Registration
public interface Timer
extends org.opendaylight.yangtools.concepts.Registration
A timer metric which aggregates timing durations.
-
Method Summary
Modifier and TypeMethodDescription<T,E extends Exception>
Ttime(CheckedCallable<T, E> event) Times and records the duration of event which returns a value.<E extends Exception>
voidtime(CheckedRunnable<E> event) Times and records the duration of event.Methods inherited from interface org.opendaylight.yangtools.concepts.Registration
close
-
Method Details
-
time
Times and records the duration of event which returns a value.- Throws:
E
-
time
Times and records the duration of event.- Throws:
E
-