public static enum ConsistentHashingNode.NodeTag extends Enum<ConsistentHashingNode.NodeTag>
| Enum Constant and Description |
|---|
DELETE
To mark the deletion of a node in the hash ring.
|
NORMAL
Standard node.
|
REPLACE
Node that is new, or is used to replace a normal node in the hash ring.
|
| Modifier and Type | Method and Description |
|---|---|
static ConsistentHashingNode.NodeTag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConsistentHashingNode.NodeTag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConsistentHashingNode.NodeTag NORMAL
public static final ConsistentHashingNode.NodeTag REPLACE
public static final ConsistentHashingNode.NodeTag DELETE
public static ConsistentHashingNode.NodeTag[] values()
for (ConsistentHashingNode.NodeTag c : ConsistentHashingNode.NodeTag.values()) System.out.println(c);
public static ConsistentHashingNode.NodeTag 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 nullCopyright © 2024 The Apache Software Foundation. All rights reserved.