java.lang.Object
java.lang.Enum<ObserverEnum>
com.espertech.esper.common.internal.epl.pattern.observer.ObserverEnum
All Implemented Interfaces:
Serializable, Comparable<ObserverEnum>, Constable

public enum ObserverEnum extends Enum<ObserverEnum>
Enum for all build-in observers.
  • Enum Constant Details

    • TIMER_INTERVAL

      public static final ObserverEnum TIMER_INTERVAL
      Observer for letting pass/waiting an interval amount of time.
    • TIMER_CRON

      public static final ObserverEnum TIMER_CRON
      Observer for 'at' (crontab) observation of timer events.
    • TIMER_ISO8601

      public static final ObserverEnum TIMER_ISO8601
      Observer for iso8601 date observation of timer events.
  • Method Details

    • values

      public static ObserverEnum[] 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 ObserverEnum 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
    • getNamespace

      public String getNamespace()
      Returns the observer namespace name.
      Returns:
      namespace name
    • getName

      public String getName()
      Returns name.
      Returns:
      short name
    • getClazz

      public Class getClazz()
      Gets the implementation class.
      Returns:
      implementation class
    • forName

      public static ObserverEnum forName(String namespace, String name)
      Returns observer enum for namespace name and observer name.
      Parameters:
      namespace - - namespace name
      name - - observer name
      Returns:
      enum