public enum LocalKeyDistribution extends Enum<LocalKeyDistribution> implements KeyDistribution
| Enum Constant and Description |
|---|
INSTANCE |
| 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.
|
static LocalKeyDistribution |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LocalKeyDistribution[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LocalKeyDistribution INSTANCE
public static LocalKeyDistribution[] values()
for (LocalKeyDistribution c : LocalKeyDistribution.values()) System.out.println(c);
public static LocalKeyDistribution valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic 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.