Class ConsistentHashKeyDistribution
java.lang.Object
org.wildfly.clustering.cache.infinispan.embedded.distribution.ConsistentHashKeyDistribution
- All Implemented Interfaces:
KeyDistribution
Key distribution functions for a specific
ConsistentHash.- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionList<org.infinispan.remoting.transport.Address> Returns the owners of the specified key.org.infinispan.remoting.transport.AddressgetPrimaryOwner(Object key) Returns the primary owner of the specified key.
-
Method Details
-
getPrimaryOwner
Description copied from interface:KeyDistributionReturns the primary owner of the specified key.- Specified by:
getPrimaryOwnerin interfaceKeyDistribution- Parameters:
key- a cache key- Returns:
- the address of the primary owner
-
getOwners
Description copied from interface:KeyDistributionReturns the owners of the specified key.- Specified by:
getOwnersin interfaceKeyDistribution- Parameters:
key- a cache key- Returns:
- a list of addresses for each owner
-