public static enum CoordinationNodeSettings.ConsistencyMode extends Enum<CoordinationNodeSettings.ConsistencyMode>
| Enum Constant and Description |
|---|
CONSISTENCY_MODE_RELAXED
Relaxed mode allows operations to complete on stale masters
|
CONSISTENCY_MODE_STRICT
Strict mode makes sure operations may only complete on current leader
|
| Modifier and Type | Method and Description |
|---|---|
static CoordinationNodeSettings.ConsistencyMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CoordinationNodeSettings.ConsistencyMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CoordinationNodeSettings.ConsistencyMode CONSISTENCY_MODE_STRICT
public static final CoordinationNodeSettings.ConsistencyMode CONSISTENCY_MODE_RELAXED
public static CoordinationNodeSettings.ConsistencyMode[] values()
for (CoordinationNodeSettings.ConsistencyMode c : CoordinationNodeSettings.ConsistencyMode.values()) System.out.println(c);
public static CoordinationNodeSettings.ConsistencyMode 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. All rights reserved.