public enum EventType extends java.lang.Enum<EventType>
Enum Constant | Description |
---|---|
ItemAdded |
User receives a notification when an item is added in the cache.
|
ItemRemoved |
User receives a notification when an item is removed from the cache.
|
ItemUpdated |
User receives a notification when an item is updated in the cache.
|
Modifier and Type | Method | Description |
---|---|---|
static EventType |
getEventType(int index) |
Retreives the Enum constant of the specified value, if exists.
|
int |
getValue() |
Order is important in enums.By using getValue() method, each enum constant index can be found, just like an array index.
|
static EventType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static EventType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventType ItemAdded
public static final EventType ItemUpdated
public static final EventType ItemRemoved
public static EventType[] values()
for (EventType c : EventType.values()) System.out.println(c);
public static EventType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static EventType getEventType(int index)
index
- Enum constant index.