com.hazelcast.cache.impl
Enum CacheEventType

java.lang.Object
  extended by java.lang.Enum<CacheEventType>
      extended by com.hazelcast.cache.impl.CacheEventType
All Implemented Interfaces:
Serializable, Comparable<CacheEventType>

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.


Enum Constant Summary
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.
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.
REMOVED
          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
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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.

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(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:
IllegalArgumentException - if this enum type has no constant with the specified name
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 a CacheEventType into EventType. Just an Enum type conversion takes place.

Parameters:
cacheEventType - a CacheEventType.
Returns:
same event of EventType enum.


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.