Enum CacheLifecycleEvent.Type
- java.lang.Object
-
- java.lang.Enum<CacheLifecycleEvent.Type>
-
- com.tangosol.net.events.partition.cache.CacheLifecycleEvent.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<CacheLifecycleEvent.Type>
- Enclosing interface:
- CacheLifecycleEvent
public static enum CacheLifecycleEvent.Type extends Enum<CacheLifecycleEvent.Type>
The emitted event types for aCacheLifecycleEvent
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATED
CacheLifecycleEvent
s of the typeCREATED
are raised when the relevant data structures to support a cache are created locally.DESTROYED
CacheLifecycleEvent
s of the typeDESTROYED
are raised when a storage for a given cache is destroyed (usually as a result of a call todestroy
).TRUNCATED
CacheLifecycleEvent
s of the typeTRUNCATED
are raised when a storage for a given cache is truncated as a result of a call totruncate
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
CREATED
public static final CacheLifecycleEvent.Type CREATED
CacheLifecycleEvent
s of the typeCREATED
are raised when the relevant data structures to support a cache are created locally.This event can be raised on both ownership enabled and disabled members.
The event may be raised based on a "natural" call to
ensureCache
, or for synthetic reasons such as a member joining an existing service with pre-existing caches.
-
DESTROYED
public static final CacheLifecycleEvent.Type DESTROYED
CacheLifecycleEvent
s of the typeDESTROYED
are raised when a storage for a given cache is destroyed (usually as a result of a call todestroy
).
-
TRUNCATED
public static final CacheLifecycleEvent.Type TRUNCATED
CacheLifecycleEvent
s of the typeTRUNCATED
are raised when a storage for a given cache is truncated as a result of a call totruncate
.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.
-
-
Method Detail
-
values
public static CacheLifecycleEvent.Type[] 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 (CacheLifecycleEvent.Type c : CacheLifecycleEvent.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CacheLifecycleEvent.Type valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-