Package com.hazelcast.cache
Enum CacheEventType
- java.lang.Object
-
- java.lang.Enum<CacheEventType>
-
- com.hazelcast.cache.CacheEventType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CacheEventType>
public enum CacheEventType extends java.lang.Enum<CacheEventType>
Hazelcast JCache implementation's internal event types. This enum type is an extension toEventType
to define more event types.
-
-
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
All Methods Static Methods Instance Methods Concrete Methods 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(java.lang.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 Detail
-
CREATED
public static final CacheEventType CREATED
An event type indicating that the cache entry was created.
-
UPDATED
public static final CacheEventType UPDATED
An event type indicating that the cache entry was updated, i.e. a previous mapping existed.
-
REMOVED
public static final CacheEventType REMOVED
An event type indicating that the cache entry was removed.
-
EXPIRED
public static final CacheEventType EXPIRED
An event type indicating that the cache entry has expired.
-
EVICTED
public static final CacheEventType EVICTED
An event type indicating that the cache entry has evicted.
-
INVALIDATED
public static final CacheEventType INVALIDATED
An event type indicating that the cache entry has invalidated for Near Cache invalidation.
-
COMPLETED
public static final CacheEventType COMPLETED
An event type indicating that the cache operation has completed.
-
EXPIRATION_TIME_UPDATED
public static final CacheEventType EXPIRATION_TIME_UPDATED
An event type indicating that the expiration time of cache record has been updated
-
PARTITION_LOST
public static final CacheEventType PARTITION_LOST
An event type indicating that partition loss is detected in given cache with name
-
-
Method Detail
-
values
public static CacheEventType[] 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 (CacheEventType c : CacheEventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CacheEventType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getType
public int getType()
- Returns:
- unique ID of the event type.
-
getByType
public static CacheEventType getByType(int eventType)
-
convertToEventType
public static javax.cache.event.EventType convertToEventType(CacheEventType cacheEventType)
Converts aCacheEventType
intoEventType
. Just an Enum type conversion takes place.- Parameters:
cacheEventType
- aCacheEventType
.- Returns:
- same event of
EventType
enum.
-
-