Class ClusterEvent<K,​V>

    • Method Detail

      • getOldValue

        public V getOldValue()
        Description copied from interface: CacheEntryRemovedEvent
        Regardless of whether isPre() is true or is false, this method returns the value of the entry being deleted. This method is useful for situations where cache listeners need to know what the old value being deleted is when getting isPre() is false callbacks.
        Specified by:
        getOldValue in interface CacheEntryRemovedEvent<K,​V>
        the value of the entry being deleted, regardless of isPre() value
      • isCreated

        public boolean isCreated()
        Description copied from interface: CacheEntryModifiedEvent
        Indicates whether the cache entry modification event is the result of the cache entry being created. This method helps determine if the cache entry was created when event.isPre() is false.
        Specified by:
        isCreated in interface CacheEntryModifiedEvent<K,​V>
        true if the event is the result of the entry being created, otherwise it returns false indicating that the event was the result of a cache entry being updated
      • getKey

        public K getKey()
        Specified by:
        getKey in interface CacheEntryEvent<K,​V>
        the key to the affected cache entry.
      • isOriginLocal

        public boolean isOriginLocal()
        Specified by:
        isOriginLocal in interface TransactionalEvent<K,​V>
        true if the call originated on the local cache instance; false if originated from a remote one.
      • getType

        public Event.Type getType()
        Specified by:
        getType in interface Event<K,​V>
        the type of event represented by this instance.
      • isPre

        public boolean isPre()
        Specified by:
        isPre in interface Event<K,​V>
        true if the notification is before the event has occurred, false if after the event has occurred.
      • getCache

        public Cache<K,​V> getCache()
        Specified by:
        getCache in interface Event<K,​V>
        a handle to the cache instance that generated this notification.
      • hashCode

        public int hashCode()
        hashCode in class Object