public enum CacheEventType extends Enum<CacheEventType>
EventType
to define more event types.Enum Constant and 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 updated
|
EXPIRED
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 name
|
REMOVED
An event type indicating that the cache entry was removed.
|
UPDATED
An event type indicating that the cache entry was updated, i.e.
|
Modifier and Type | Method and Description |
---|---|
static javax.cache.event.EventType |
convertToEventType(CacheEventType cacheEventType)
Converts a
CacheEventType into EventType . |
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.
|
public static final CacheEventType CREATED
public static final CacheEventType UPDATED
public static final CacheEventType REMOVED
public static final CacheEventType EXPIRED
public static final CacheEventType EVICTED
public static final CacheEventType INVALIDATED
public static final CacheEventType COMPLETED
public static final CacheEventType EXPIRATION_TIME_UPDATED
public static final CacheEventType PARTITION_LOST
public static CacheEventType[] values()
for (CacheEventType c : CacheEventType.values()) System.out.println(c);
public static CacheEventType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getType()
public static CacheEventType getByType(int eventType)
public static javax.cache.event.EventType convertToEventType(CacheEventType cacheEventType)
CacheEventType
into EventType
.
Just an Enum type conversion takes place.cacheEventType
- a CacheEventType
.EventType
enum.Copyright © 2023 Hazelcast, Inc.. All rights reserved.