Package org.elasticsearch.common.cache
Enum RemovalNotification.RemovalReason
- java.lang.Object
-
- java.lang.Enum<RemovalNotification.RemovalReason>
-
- org.elasticsearch.common.cache.RemovalNotification.RemovalReason
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RemovalNotification.RemovalReason>
- Enclosing class:
- RemovalNotification<K,V>
public static enum RemovalNotification.RemovalReason extends java.lang.Enum<RemovalNotification.RemovalReason>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EVICTED
INVALIDATED
REPLACED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RemovalNotification.RemovalReason
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RemovalNotification.RemovalReason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REPLACED
public static final RemovalNotification.RemovalReason REPLACED
-
INVALIDATED
public static final RemovalNotification.RemovalReason INVALIDATED
-
EVICTED
public static final RemovalNotification.RemovalReason EVICTED
-
-
Method Detail
-
values
public static RemovalNotification.RemovalReason[] 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 (RemovalNotification.RemovalReason c : RemovalNotification.RemovalReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RemovalNotification.RemovalReason 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 namejava.lang.NullPointerException
- if the argument is null
-
-