|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Callback.Event>
org.javasimon.callback.Callback.Event
public static enum Callback.Event
Enumeration of all supported callback actions. ALL is meta-action usable in
configurations meaning that the configuration entry applies to all actions (any action).
In callback configuration action names in lowercase and with _ replaced for - can be
used (e.g. "counter-increase" instead for COUNTER_INCREASE.
| Enum Constant Summary | |
|---|---|
ALL
Meta-action designating all actions (or any action in rules). |
|
COUNTER_DECREASE
Counter decreased. |
|
COUNTER_INCREASE
Counter increased. |
|
COUNTER_SET
Counter set to arbitrary value. |
|
CREATED
Creation of a Simon. |
|
DESTROYED
Removing of a Simon. |
|
MANAGER_CLEAR
Clearing of the manager. |
|
MESSAGE
Event producing arbitrary message. |
|
RESET
Reset of the Simon. |
|
STOPWATCH_ADD
Adding value to the stopwatch. |
|
STOPWATCH_START
Start of the stopwatch. |
|
STOPWATCH_STOP
Stop of the stopwatch. |
|
WARNING
Warning related to the manager. |
|
| Field Summary | |
|---|---|
private String |
code
|
private static Map<String,Callback.Event> |
codeValues
|
| Method Summary | |
|---|---|
static Callback.Event |
forCode(String code)
Returns event for String code used in XML configuration. |
static Callback.Event |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Callback.Event[] |
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 |
|---|
public static final Callback.Event ALL
public static final Callback.Event RESET
public static final Callback.Event STOPWATCH_START
public static final Callback.Event STOPWATCH_STOP
public static final Callback.Event STOPWATCH_ADD
public static final Callback.Event COUNTER_INCREASE
public static final Callback.Event COUNTER_DECREASE
public static final Callback.Event COUNTER_SET
public static final Callback.Event CREATED
public static final Callback.Event DESTROYED
public static final Callback.Event MANAGER_CLEAR
public static final Callback.Event MESSAGE
public static final Callback.Event WARNING
| Field Detail |
|---|
private static Map<String,Callback.Event> codeValues
private String code
| Method Detail |
|---|
public static Callback.Event[] values()
for (Callback.Event c : Callback.Event.values()) System.out.println(c);
public static Callback.Event valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static Callback.Event forCode(String code)
code - String code
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||