Interface Timer
-
- All Superinterfaces:
AutoCloseable
,UncheckedCloseable
public interface Timer extends UncheckedCloseable
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.-
Methods inherited from interface org.opendaylight.infrautils.utils.UncheckedCloseable
close
-
-
-
-
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
-
-