Class NoOpIracManager

  • All Implemented Interfaces:
    IracManager

    public class NoOpIracManager
    extends Object
    implements IracManager
    A no-op implementation of IracManager for cache without asynchronous remote site backups.
    Since:
    11.0
    Author:
    Pedro Ruivo
    • Method Detail

      • trackUpdatedKey

        public void trackUpdatedKey​(Object key,
                                    Object lockOwner)
        Description copied from interface: IracManager
        Sets the key as changed by the lockOwner.
        Specified by:
        trackUpdatedKey in interface IracManager
        Parameters:
        key - The key changed.
        lockOwner - The lock owner who updated the key.
      • trackUpdatedKeys

        public <K> void trackUpdatedKeys​(Collection<K> keys,
                                         Object lockOwner)
        Description copied from interface: IracManager
        Sets all the keys in keys as changed by the lockOwner.
        Specified by:
        trackUpdatedKeys in interface IracManager
        Parameters:
        keys - A Collection of keys changed.
        lockOwner - The lock owner who updated the keys.
      • trackClear

        public void trackClear()
        Description copied from interface: IracManager
        Sets all keys as removed.
        Specified by:
        trackClear in interface IracManager
      • cleanupKey

        public void cleanupKey​(Object key,
                               Object lockOwner,
                               IracMetadata tombstone)
        Description copied from interface: IracManager
        Sets the key as not changed and remove any tombstone related to it.

        If lockOwner isn't the last one who updated the key, this method is a no-op.

        Specified by:
        cleanupKey in interface IracManager
        Parameters:
        key - The key.
        lockOwner - The lock owner who updated the key.
        tombstone - The tombstone (can be null).
      • requestState

        public void requestState​(Address origin,
                                 org.infinispan.commons.util.IntSet segments)
        Description copied from interface: IracManager
        Requests the state stored in this instance for the given segments.
        Specified by:
        requestState in interface IracManager
        Parameters:
        origin - The requestor.
        segments - The segments requested.
      • receiveState

        public void receiveState​(Object key,
                                 Object lockOwner,
                                 IracMetadata tombstone)
        Description copied from interface: IracManager
        Receives the state related to the key.
        Specified by:
        receiveState in interface IracManager
        Parameters:
        key - The key modified.
        lockOwner - The last lockOwner.
        tombstone - The tombstone (can be null)