public static enum CacheLifecycleEvent.Type extends Enum<CacheLifecycleEvent.Type>
CacheLifecycleEvent.| Enum Constant and Description |
|---|
CREATED
CacheLifecycleEvents of the type CREATED are raised when a storage for a given cache is created. |
DESTROYED
CacheLifecycleEvents of the type DESTROYED are raised when a storage for a given cache is destroyed (usually as a result of a call to destroy). |
TRUNCATED
CacheLifecycleEvents of the type TRUNCATED are raised when a storage for a given cache is truncated as a result of a call to truncate. |
| Modifier and Type | Method and Description |
|---|---|
static CacheLifecycleEvent.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheLifecycleEvent.Type[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final CacheLifecycleEvent.Type CREATED
CacheLifecycleEvents of the type CREATED are raised when a storage for a given cache is created.public static final CacheLifecycleEvent.Type DESTROYED
CacheLifecycleEvents of the type DESTROYED are raised when a storage for a given cache is destroyed (usually as a result of a call to destroy).public static final CacheLifecycleEvent.Type TRUNCATED
CacheLifecycleEvents of the type TRUNCATED are raised when a storage for a given cache is truncated as a result of a call to truncate.
Truncate provides unobservable removal of all data associated to a cache thus this event notifies subscribers of the execution of a truncate operation, intentionally, without the associated entries.
public static CacheLifecycleEvent.Type[] values()
for (CacheLifecycleEvent.Type c : CacheLifecycleEvent.Type.values())
System.out.println(c);
public static CacheLifecycleEvent.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null