Package org.infinispan.distribution
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 Summary
Modifier and TypeMethodDescriptioncreateLocalizedCacheTopology
(CacheTopology cacheTopology) Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0, to be removed in 14.0.Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0, to be removed in 14.0.boolean
isAffectedByRehash
(Object key) Tests whether a given key is affected by a rehash that may be in progress.boolean
Tests whether the current instance has completed joining the clusterboolean
Tests whether a rehash is in progressvoid
setCacheTopology
(CacheTopology cacheTopology) Deprecated, for removal: This API element is subject to removal in a future version.Internal only.
-
Method Details
-
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 usegetCacheTopology()
instead.- Returns:
- the consistent hash used for reading.
-
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 usegetCacheTopology()
instead.- Returns:
- the consistent hash used for writing.
-
isAffectedByRehash
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, for removal: This API element is subject to removal in a future version.Internal only. -
createLocalizedCacheTopology
-