public enum ConsistencyCheckStrategy extends Enum<ConsistencyCheckStrategy>
Enum Constant and Description |
---|
MERKLE_TREES
Uses merkle trees (if configured) for consistency checks.
|
NONE
No consistency checks
|
Modifier and Type | Method and Description |
---|---|
static ConsistencyCheckStrategy |
getById(byte id)
Returns the ConsistencyCheckStrategy for the given ID.
|
byte |
getId()
Gets the ID for this ConsistencyCheckStrategy.
|
static ConsistencyCheckStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConsistencyCheckStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConsistencyCheckStrategy NONE
public static final ConsistencyCheckStrategy MERKLE_TREES
MerkleTreeConfig
public static ConsistencyCheckStrategy[] values()
for (ConsistencyCheckStrategy c : ConsistencyCheckStrategy.values()) System.out.println(c);
public static ConsistencyCheckStrategy 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 getId()
This reason this ID is used instead of an the ordinal value is that the ordinal value is more prone to changes due to reordering.
public static ConsistencyCheckStrategy getById(byte id)
IllegalArgumentException
- if no ConsistencyCheckStrategy was foundCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.