Enum Class ThreadMonitor.State

java.lang.Object
java.lang.Enum<ThreadMonitor.State>
com.pnfsoftware.jeb.util.concurrent.ThreadMonitor.State
All Implemented Interfaces:
Serializable, Comparable<ThreadMonitor.State>, Constable
Enclosing class:
ThreadMonitor

public static enum ThreadMonitor.State extends Enum<ThreadMonitor.State>
Monitoring lifecycle states.
  • Enum Constant Details

    • READY

      public static final ThreadMonitor.State READY
      The monitor has not started.
    • MONITORING

      public static final ThreadMonitor.State MONITORING
      The monitor is currently watching the target thread.
    • DONE

      public static final ThreadMonitor.State DONE
      The target thread completed or handled interruption successfully.
    • ERROR

      public static final ThreadMonitor.State ERROR
      Monitoring completed but the target thread did not terminate.
    • EXCEPTION

      public static final ThreadMonitor.State EXCEPTION
      The monitor terminated because an exception was raised.
  • Method Details

    • values

      public static ThreadMonitor.State[] 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 ThreadMonitor.State 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