Enum Class KarateLifecycle.Outcome

java.lang.Object
java.lang.Enum<KarateLifecycle.Outcome>
io.karatelabs.common.KarateLifecycle.Outcome
All Implemented Interfaces:
Serializable, Comparable<KarateLifecycle.Outcome>, Constable
Enclosing class:
KarateLifecycle

public static enum KarateLifecycle.Outcome extends Enum<KarateLifecycle.Outcome>
How stopping one component turned out.
  • Enum Constant Details

    • STOPPED

      public static final KarateLifecycle.Outcome STOPPED
      stop() returned normally.
    • FAILED

      public static final KarateLifecycle.Outcome FAILED
      stop() threw — the component may be partly stopped.
    • TIMED_OUT

      public static final KarateLifecycle.Outcome TIMED_OUT
      stop() outlived its slice of the deadline and was interrupted, or there was no time left to attempt it at all. The component is left to the daemon-thread backstop.
  • Method Details

    • values

      public static KarateLifecycle.Outcome[] 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 KarateLifecycle.Outcome 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