com.alachisoft.jvcache.web.caching
Enum CacheItemRemovedReason

java.lang.Object
  extended by java.lang.Enum<CacheItemRemovedReason>
      extended by com.alachisoft.jvcache.web.caching.CacheItemRemovedReason
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CacheItemRemovedReason>

public enum CacheItemRemovedReason
extends java.lang.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 are 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

DependencyChanged

public static final CacheItemRemovedReason DependencyChanged
The item is removed from the cache because a file or key dependency changed.


Expired

public static final CacheItemRemovedReason Expired
The item is removed from the cache because it expired.


Removed

public static final CacheItemRemovedReason 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

public static final CacheItemRemovedReason Underused
The item is removed from the cache because the system removed it to free memory.

Method Detail

values

public static CacheItemRemovedReason[] 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 (CacheItemRemovedReason c : CacheItemRemovedReason.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CacheItemRemovedReason 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 name
java.lang.NullPointerException - if the argument is null