Class CacheKeyDistribution
java.lang.Object
org.wildfly.clustering.infinispan.distribution.CacheKeyDistribution
- All Implemented Interfaces:
KeyDistribution
Key distribution appropriate for any cache mode.
- Author:
- Paul Ferraro
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
CacheKeyDistribution
public CacheKeyDistribution(org.infinispan.Cache<?, ?> cache)
-
-
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
-