Package com.hazelcast.cache
Enum Class CacheEventType
- All Implemented Interfaces:
Serializable
,Comparable<CacheEventType>
,Constable
Hazelcast JCache implementation's internal event types. This enum
type is an extension to
EventType
to define more event types.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAn event type indicating that the cache operation has completed.An event type indicating that the cache entry was created.An event type indicating that the cache entry has evicted.An event type indicating that the expiration time of cache record has been updatedAn event type indicating that the cache entry has expired.An event type indicating that the cache entry has invalidated for Near Cache invalidation.An event type indicating that partition loss is detected in given cache with nameAn event type indicating that the cache entry was removed.An event type indicating that the cache entry was updated, i.e. a previous mapping existed. -
Method Summary
Modifier and TypeMethodDescriptionstatic javax.cache.event.EventType
convertToEventType
(CacheEventType cacheEventType) Converts aCacheEventType
intoEventType
.static CacheEventType
getByType
(int eventType) int
getType()
static CacheEventType
Returns the enum constant of this class with the specified name.static CacheEventType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATED
An event type indicating that the cache entry was created. -
UPDATED
An event type indicating that the cache entry was updated, i.e. a previous mapping existed. -
REMOVED
An event type indicating that the cache entry was removed. -
EXPIRED
An event type indicating that the cache entry has expired. -
EVICTED
An event type indicating that the cache entry has evicted. -
INVALIDATED
An event type indicating that the cache entry has invalidated for Near Cache invalidation. -
COMPLETED
An event type indicating that the cache operation has completed. -
EXPIRATION_TIME_UPDATED
An event type indicating that the expiration time of cache record has been updated -
PARTITION_LOST
An event type indicating that partition loss is detected in given cache with name
-
-
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
-
getType
public int getType()- Returns:
- unique ID of the event type.
-
getByType
-
convertToEventType
Converts aCacheEventType
intoEventType
. Just an Enum type conversion takes place.- Parameters:
cacheEventType
- aCacheEventType
.- Returns:
- same event of
EventType
enum.
-