Enum 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 to EventType 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 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.
    • 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 name
        java.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 a CacheEventType into EventType. Just an Enum type conversion takes place.
        Parameters:
        cacheEventType - a CacheEventType.
        Returns:
        same event of EventType enum.