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 Type
    Method
    Description
    <T, E extends Exception>
    T
    time(CheckedCallable<T,E> event)
    Times and records the duration of event which returns a value.
    <E extends Exception>
    void
    Times and records the duration of event.

    Methods inherited from interface org.opendaylight.yangtools.concepts.Registration

    close
  • Method Details

    • time

      <T, E extends Exception> T time(CheckedCallable<T,E> event) throws E
      Times and records the duration of event which returns a value.
      Throws:
      E
    • time

      <E extends Exception> void time(CheckedRunnable<E> event) throws E
      Times and records the duration of event.
      Throws:
      E