Interface KeyDistribution
- All Known Implementing Classes:
CacheKeyDistribution,ConsistentHashKeyDistribution,LocalKeyDistribution
public interface KeyDistribution
Provides key distribution functions.
- 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
Returns the primary owner of the specified key.- Parameters:
key- a cache key- Returns:
- the address of the primary owner
-
getOwners
Returns the owners of the specified key.- Parameters:
key- a cache key- Returns:
- a list of addresses for each owner
-