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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <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.
-
-
-
Method Detail
-
time
<T,E extends Exception> T time(CheckedCallable<T,E> event) throws E extends Exception
Times and records the duration of event which returns a value.- Throws:
E extends Exception
-
time
<E extends Exception> void time(CheckedRunnable<E> event) throws E extends Exception
Times and records the duration of event.- Throws:
E extends Exception
-
-