public enum ExpirationType extends java.lang.Enum<ExpirationType>
Enum Constant | Description |
---|---|
Absolute |
Indicates that item expiration in the cache is to follow fixed expiration.
|
DefaultAbsolute |
Indicates that item expiration in the cache is to follow fixed expiration and value should be taken from 'DefaultAbsolute' field in the NCache Manager.
|
DefaultAbsoluteLonger |
Indicates that item expiration in the cache is to follow fixed expiration and value should be taken from 'DefaultAbsoluteLonger' field in the NCache Manager.
|
DefaultSliding |
Indicates that item expiration in the cache is to follow fixed expiration and value should be taken from 'DefaultSliding' field in the NCache Manager.
|
DefaultSlidingLonger |
Indicates that item expiration in cache is to follow fixed expiration and value should be taken from 'DefaultSlidingLonger' field in the NCache Manager.
|
None |
Indicates that no expiration is to take place.
|
Sliding |
Indicates that item expiration in the cache is to follow idle expiration.
|
Modifier and Type | Method | Description |
---|---|---|
static ExpirationType |
forValue(int value) |
Retreives the enum constant of the specified value, if exists.
|
int |
getValue() |
Order is important in enums.
|
static ExpirationType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ExpirationType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExpirationType None
public static final ExpirationType Sliding
public static final ExpirationType Absolute
public static final ExpirationType DefaultAbsolute
public static final ExpirationType DefaultAbsoluteLonger
public static final ExpirationType DefaultSliding
public static final ExpirationType DefaultSlidingLonger
public static ExpirationType[] values()
for (ExpirationType c : ExpirationType.values()) System.out.println(c);
public static ExpirationType 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 static ExpirationType forValue(int value)
value
- Enum constant index.public int getValue()