public enum ConsistencyLevel extends Enum<ConsistencyLevel>
| Enum Constant and Description |
|---|
ALL
Ensure that the modification has been updated in all members before responding to the client,
otherwise the modification is rejected and a
ConsistencyLevelViolationException is
thrown. |
ANY
Ensure that the modification has been updated in at least 1 member before responding to the
client, otherwise the modification is rejected and a
ConsistencyLevelViolationException
is thrown. |
QUORUM
Ensure that the modification has been updated in at least N / 2 + 1 members before responding
to the client, otherwise the modification is rejected and a
ConsistencyLevelViolationException is thrown. |
| Modifier and Type | Method and Description |
|---|---|
static ConsistencyLevel |
fromCode(byte readByte) |
byte |
getCode() |
static ConsistencyLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConsistencyLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConsistencyLevel ANY
ConsistencyLevelViolationException
is thrown. In a primary backup topology that member is the primary.public static final ConsistencyLevel QUORUM
ConsistencyLevelViolationException is thrown. In a primary backup topology one of the
members is the primary.public static final ConsistencyLevel ALL
ConsistencyLevelViolationException is
thrown.public static ConsistencyLevel[] values()
for (ConsistencyLevel c : ConsistencyLevel.values()) System.out.println(c);
public static ConsistencyLevel 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 byte getCode()
public static ConsistencyLevel fromCode(byte readByte)
Copyright © GigaSpaces.