public enum CacheItemPriority extends java.lang.Enum<CacheItemPriority>
Enum Constant | Description |
---|---|
AboveNormal |
Cache items with this priority level are less likely to be deleted as
the server frees system memory than those assigned a Normal priority.
|
BelowNormal |
Cache items with this priority level are more likely to be deleted from
the cache as the server frees system memory than items assigned a Normal priority.
|
Default |
The default value for a cached item's priority is Normal
|
High |
Cache items with this priority level are the least likely to be deleted
from the cache as the server frees system memory.
|
Low |
Cache items with this priority level are the most likely to be deleted
from the cache as the server frees system memory.
|
Normal |
Cache items with this priority level are likely to be deleted from the cache as the server
frees system memory only after those items with Low or BelowNormal priority.
|
NotRemovable |
The cache items with this priority level will not be deleted from the
cache as the server frees system memory.
|
Modifier and Type | Method | Description |
---|---|---|
static CacheItemPriority |
forValue(int value) |
retreives the enum constant of the specified value, if exists.
|
static CacheItemPriority |
getValueFromString(java.lang.String value) |
retreives the enum constant of the specified value, if exists.
|
int |
value() |
Order is important in enums.By using Value() method, each enum constant index can be found, just like array index.
|
static CacheItemPriority |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static CacheItemPriority[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheItemPriority Normal
public static final CacheItemPriority Low
public static final CacheItemPriority BelowNormal
public static final CacheItemPriority AboveNormal
public static final CacheItemPriority High
public static final CacheItemPriority NotRemovable
public static final CacheItemPriority Default
public static CacheItemPriority[] values()
for (CacheItemPriority c : CacheItemPriority.values()) System.out.println(c);
public static CacheItemPriority 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 CacheItemPriority forValue(int value)
value
- enum constant indexpublic int value()
public static CacheItemPriority getValueFromString(java.lang.String value)
value
- enum constant index