public enum CacheEntryDisposition extends java.lang.Enum<CacheEntryDisposition>
CacheEntryExpirationHandler
to tell a Cache
what to do with
an object that has expired.Enum Constant and Description |
---|
NotHandled
The client has not handled the event; the object will be removed.
|
Remove
The client would like the object removed from the store.
|
Save
The client would like to keep the object in the store.
|
Modifier and Type | Method and Description |
---|---|
int |
value()
retrieve the value of this enum.
|
static CacheEntryDisposition |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CacheEntryDisposition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheEntryDisposition Save
public static final CacheEntryDisposition Remove
public static final CacheEntryDisposition NotHandled
public static CacheEntryDisposition[] values()
for (CacheEntryDisposition c : CacheEntryDisposition.values()) System.out.println(c);
public static CacheEntryDisposition 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 int value()