Class CacheKeyDistribution
- java.lang.Object
-
- org.wildfly.clustering.infinispan.distribution.CacheKeyDistribution
-
- All Implemented Interfaces:
KeyDistribution
public class CacheKeyDistribution extends Object implements KeyDistribution
Key distribution appropriate for any cache mode.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description CacheKeyDistribution(org.infinispan.Cache<?,?> cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.infinispan.remoting.transport.Address>getOwners(Object key)Returns the owners of the specified key.org.infinispan.remoting.transport.AddressgetPrimaryOwner(Object key)Returns the primary owner of the specified key.
-
-
-
Method Detail
-
getPrimaryOwner
public org.infinispan.remoting.transport.Address getPrimaryOwner(Object key)
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
public List<org.infinispan.remoting.transport.Address> getOwners(Object key)
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
-
-