Enum CacheEventType

java.lang.Object
java.lang.Enum<CacheEventType>
com.hazelcast.cache.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.
  • Enum Constant Details

    • 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 Details

    • values

      public static CacheEventType[] 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

      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.