Enum Class TimerEvent.Type

java.lang.Object
java.lang.Enum<TimerEvent.Type>
io.github.resilience4j.micrometer.event.TimerEvent.Type
All Implemented Interfaces:
Serializable, Comparable<TimerEvent.Type>, Constable
Enclosing interface:
TimerEvent

public static enum TimerEvent.Type extends Enum<TimerEvent.Type>
Event types which are created by a Timer.
  • Enum Constant Details

    • START

      public static final TimerEvent.Type START
      A TimerEvent which informs that the decorated operation has started.
    • SUCCESS

      public static final TimerEvent.Type SUCCESS
      A TimerEvent which informs that the decorated operation was successful.
    • FAILURE

      public static final TimerEvent.Type FAILURE
      A TimerEvent which informs that the decorated operation threw an exception.
  • Method Details

    • values

      public static TimerEvent.Type[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TimerEvent.Type valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null