|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<CacheItemPriority>
com.alachisoft.ncache.runtime.CacheItemPriority
public enum CacheItemPriority
Specifies the relative priority of items stored in the Cache.
When the application's cache is full or runs low on memory, the Cache selectively purges items to free system memory. When an item is added to the Cache, you can assign it a relative priority compared to the other items stored in the Cache. Items you assign higher priority values to are less likely to be deleted from the Cache when the server is processing a large number of requests, while items you assign lower priority values are more likely to be deleted. The default is Normal.
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
int |
value()
|
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're declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CacheItemPriority AboveNormal
public static final CacheItemPriority BelowNormal
public static final CacheItemPriority Default
public static final CacheItemPriority High
public static final CacheItemPriority Low
public static final CacheItemPriority Normal
public static final CacheItemPriority NotRemovable
Method Detail |
---|
public int value()
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 namepublic static final CacheItemPriority[] values()
for(CacheItemPriority c : CacheItemPriority.values()) System.out.println(c);
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |