com.espertech.esper.pattern.observer
Enum ObserverEnum

java.lang.Object
  extended by java.lang.Enum<ObserverEnum>
      extended by com.espertech.esper.pattern.observer.ObserverEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ObserverEnum>

public enum ObserverEnum
extends java.lang.Enum<ObserverEnum>

Enum for all build-in observers.


Enum Constant Summary
TIMER_CRON
          Observer for 'at' (crontab) observation of timer events.
TIMER_INTERVAL
          Observer for letting pass/waiting an interval amount of time.
TIMER_ISO8601
          Observer for iso8601 date observation of timer events.
 
Method Summary
static ObserverEnum forName(java.lang.String namespace, java.lang.String name)
          Returns observer enum for namespace name and observer name.
 java.lang.Class getClazz()
          Gets the implementation class.
 java.lang.String getName()
          Returns name.
 java.lang.String getNamespace()
          Returns the observer namespace name.
static ObserverEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ObserverEnum[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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 Detail

values

public static ObserverEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ObserverEnum c : ObserverEnum.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ObserverEnum valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getNamespace

public java.lang.String getNamespace()
Returns the observer namespace name.

Returns:
namespace name

getName

public java.lang.String getName()
Returns name.

Returns:
short name

getClazz

public java.lang.Class getClazz()
Gets the implementation class.

Returns:
implementation class

forName

public static ObserverEnum forName(java.lang.String namespace,
                                   java.lang.String name)
Returns observer enum for namespace name and observer name.

Parameters:
namespace - - namespace name
name - - observer name
Returns:
enum

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com