Package org.infinispan.distribution
Interface DistributionManager
-
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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description LocalizedCacheTopology
createLocalizedCacheTopology(org.infinispan.topology.CacheTopology cacheTopology)
LocalizedCacheTopology
getCacheTopology()
ConsistentHash
getReadConsistentHash()
Deprecated.Since 11.0, to be removed in 14.0.ConsistentHash
getWriteConsistentHash()
Deprecated.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
isJoinComplete()
Tests whether the current instance has completed joining the clusterboolean
isRehashInProgress()
Tests whether a rehash is in progressvoid
setCacheTopology(org.infinispan.topology.CacheTopology cacheTopology)
Deprecated.Internal only.
-
-
-
Method Detail
-
getReadConsistentHash
@Deprecated ConsistentHash getReadConsistentHash()
Deprecated.Since 11.0, to be removed in 14.0. Please usegetCacheTopology()
instead.- Returns:
- the consistent hash used for reading.
-
getWriteConsistentHash
@Deprecated ConsistentHash getWriteConsistentHash()
Deprecated.Since 11.0, to be removed in 14.0. Please usegetCacheTopology()
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 void setCacheTopology(org.infinispan.topology.CacheTopology cacheTopology)
Deprecated.Internal only.
-
createLocalizedCacheTopology
LocalizedCacheTopology createLocalizedCacheTopology(org.infinispan.topology.CacheTopology cacheTopology)
-
-