Interface DistributionManager

  • All Known Implementing Classes:
    DistributionManagerImpl

    public interface DistributionManager
    A component that manages the distribution of elements across a cache cluster
    Since:
    4.0
    Author:
    Manik Surtani, Mircea.Markus@jboss.com, Vladimir Blagojevic, anistor@redhat.com
    • Method Detail

      • isAffectedByRehash

        boolean isAffectedByRehash​(Object key)
        Tests whether a given key is affected by a rehash that may be in progress. If no rehash is in progress, this method returns false. Helps determine whether additional steps are necessary in handling an operation with a given key.
        Parameters:
        key - key to test
        Returns:
        whether a key is affected by a rehash
      • isRehashInProgress

        boolean isRehashInProgress()
        Tests whether a rehash is in progress
        Returns:
        true if a rehash is in progress, false otherwise
      • isJoinComplete

        boolean isJoinComplete()
        Tests whether the current instance has completed joining the cluster
        Returns:
        true if join is in progress, false otherwise
      • getCacheTopology

        LocalizedCacheTopology getCacheTopology()
        Returns:
        the current cache topology, which includes the read and write consistent hashes.