Package com.hazelcast.cache
Enum CacheEventType
- All Implemented Interfaces:
Serializable
,Comparable<CacheEventType>
,java.lang.constant.Constable
public enum CacheEventType extends Enum<CacheEventType>
Hazelcast JCache implementation's internal event types. This enum
type is an extension to
EventType
to define more event types.-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPLETED
An event type indicating that the cache operation has completed.CREATED
An event type indicating that the cache entry was created.EVICTED
An event type indicating that the cache entry has evicted.EXPIRATION_TIME_UPDATED
An event type indicating that the expiration time of cache record has been updatedEXPIRED
An event type indicating that the cache entry has expired.INVALIDATED
An event type indicating that the cache entry has invalidated for Near Cache invalidation.PARTITION_LOST
An event type indicating that partition loss is detected in given cache with nameREMOVED
An event type indicating that the cache entry was removed.UPDATED
An event type indicating that the cache entry was updated, i.e. -
Method Summary
Modifier and Type Method Description static javax.cache.event.EventType
convertToEventType(CacheEventType cacheEventType)
Converts aCacheEventType
intoEventType
.static CacheEventType
getByType(int eventType)
int
getType()
static CacheEventType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CacheEventType[]
values()
Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
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.
-