|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<CacheItemRemovedReason>
com.alachisoft.ncache.web.caching.CacheItemRemovedReason
public enum CacheItemRemovedReason
Specifies the reason an item was removed from the Cache.
This enumeration works in concert with the CacheItemRemovedCallback delegate to notify your applications when and why an object was removed from the Cache.
Enum Constant Summary | |
---|---|
DependencyChanged
The item is removed from the cache because a file or key dependency changed. |
|
Expired
The item is removed from the cache because it expired. |
|
Removed
The item is removed from the cache by a Cache.Remove method call or by an Cache.Insert method call that specified the same key. |
|
Underused
The item is removed from the cache because the system removed it to free memory. |
Method Summary | |
---|---|
static CacheItemRemovedReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CacheItemRemovedReason[] |
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 CacheItemRemovedReason DependencyChanged
public static final CacheItemRemovedReason Expired
public static final CacheItemRemovedReason Removed
public static final CacheItemRemovedReason Underused
Method Detail |
---|
public static CacheItemRemovedReason 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 CacheItemRemovedReason[] values()
for(CacheItemRemovedReason c : CacheItemRemovedReason.values()) System.out.println(c);
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |