public enum KeyDependencyType extends java.lang.Enum<KeyDependencyType>
Enum Constant | Description |
---|---|
RemoveOnly |
Trigger key dependency when a remove operation
takes place on the cache item.
|
UpdateOrRemove |
Trigger key dependency when an update or remove
operation takes place on the cache item.
|
Modifier and Type | Method | Description |
---|---|---|
static KeyDependencyType |
forValue(int value) |
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 array index.
|
static KeyDependencyType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static KeyDependencyType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyDependencyType UpdateOrRemove
public static final KeyDependencyType RemoveOnly
public static KeyDependencyType[] values()
for (KeyDependencyType c : KeyDependencyType.values()) System.out.println(c);
public static KeyDependencyType 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 KeyDependencyType forValue(int value)
value
- enum constant index