Class ModifiedEventImpl<K>

    • Constructor Detail

      • ModifiedEventImpl

        public ModifiedEventImpl​(byte[] listenerId,
                                 K key,
                                 long version,
                                 boolean retried)
    • Method Detail

      • getVersion

        public long getVersion()
        Description copied from interface: ClientCacheEntryModifiedEvent
        Provides access to the version of the modified cache entry. This version can be used to invoke conditional operations on the server, such as RemoteCache#replaceWithVersion(Object, Object, long) or RemoteCache#removeWithVersion(Object, long)
        Specified by:
        getVersion in interface ClientCacheEntryModifiedEvent<K>
        Returns:
        a long containing the version of the modified cache entry.
      • isCommandRetried

        public boolean isCommandRetried()
        Description copied from interface: ClientCacheEntryModifiedEvent
        This will be true if the write command that caused this had to be retried again due to a topology change. This could be a sign that this event has been duplicated or another event was dropped and replaced (eg: ModifiedEvent replaced CreateEvent)
        Specified by:
        isCommandRetried in interface ClientCacheEntryModifiedEvent<K>
        Returns:
        Whether the command that caused this event was retried