Enum Class ObserverType

java.lang.Object
java.lang.Enum<ObserverType>
org.tasktide.engine.observer.worker.ObserverType
All Implemented Interfaces:
Serializable, Comparable<ObserverType>, Constable

public enum ObserverType extends Enum<ObserverType>
Enum to support logic handling optional/critical WorkerObserver
  • Enum Constant Details

  • Method Details

    • values

      public static ObserverType[] 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 ObserverType 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
    • isType

      public abstract boolean isType(ObserverType query)
      Check is observer types are the same
      Parameters:
      query -
      Returns:
      boolean
    • isType

      public abstract boolean isType(String query)
      Check whether queried string matches current type
      Parameters:
      query -
      Returns:
      boolean
    • isOptional

      public abstract boolean isOptional()
      Check is enum is optional
      Returns:
      boolean
    • toString

      public abstract String toString()
      Represent enum as string
      Overrides:
      toString in class Enum<ObserverType>
      Returns:
      String