Enum Class 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>,Constable
- Enclosing interface:
CacheLifecycleEvent
The emitted event types for a
CacheLifecycleEvent.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCacheLifecycleEvents of the typeCREATEDare raised when the relevant data structures to support a cache are created locally.CacheLifecycleEvents of the typeDESTROYEDare raised when a storage for a given cache is destroyed (usually as a result of a call todestroy).CacheLifecycleEvents of the typeTRUNCATEDare raised when a storage for a given cache is truncated as a result of a call totruncate. -
Method Summary
Modifier and TypeMethodDescriptionstatic CacheLifecycleEvent.TypeReturns the enum constant of this class with the specified name.static CacheLifecycleEvent.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATED
CacheLifecycleEvents of the typeCREATEDare 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
CacheLifecycleEvents of the typeDESTROYEDare raised when a storage for a given cache is destroyed (usually as a result of a call todestroy). -
TRUNCATED
CacheLifecycleEvents of the typeTRUNCATEDare 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 Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-