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 Details

    • getReadConsistentHash

      @Deprecated(forRemoval=true) ConsistentHash getReadConsistentHash()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 11.0, to be removed in 14.0. Please use getCacheTopology() instead.
      Returns:
      the consistent hash used for reading.
    • getWriteConsistentHash

      @Deprecated(forRemoval=true) ConsistentHash getWriteConsistentHash()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 11.0, to be removed in 14.0. Please use getCacheTopology() instead.
      Returns:
      the consistent hash used for writing.
    • 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.
    • setCacheTopology

      @Deprecated(forRemoval=true) void setCacheTopology(CacheTopology cacheTopology)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Internal only.
    • createLocalizedCacheTopology

      LocalizedCacheTopology createLocalizedCacheTopology(CacheTopology cacheTopology)