public class ConsistentHashKeyDistribution extends Object implements KeyDistribution
ConsistentHash.| Constructor and Description |
|---|
ConsistentHashKeyDistribution(org.infinispan.distribution.ch.KeyPartitioner partitioner,
org.infinispan.distribution.ch.ConsistentHash hash) |
| Modifier and Type | Method and Description |
|---|---|
List<org.infinispan.remoting.transport.Address> |
getOwners(Object key)
Returns the owners of the specified key.
|
org.infinispan.remoting.transport.Address |
getPrimaryOwner(Object key)
Returns the primary owner of the specified key.
|
public ConsistentHashKeyDistribution(org.infinispan.distribution.ch.KeyPartitioner partitioner,
org.infinispan.distribution.ch.ConsistentHash hash)
public org.infinispan.remoting.transport.Address getPrimaryOwner(Object key)
KeyDistributiongetPrimaryOwner in interface KeyDistributionkey - a cache keypublic List<org.infinispan.remoting.transport.Address> getOwners(Object key)
KeyDistributiongetOwners in interface KeyDistributionkey - a cache keyCopyright © 2023 JBoss by Red Hat. All rights reserved.