public enum PartitionLossPolicy extends Enum<PartitionLossPolicy>
All *_SAFE
policies prevent a user from interaction with partial data in lost partitions until
Ignite.resetLostPartitions(Collection)
method is called. *_ALL
policies allow working with
partial data in lost partitions.
READ_ONLY_*
and READ_WRITE_*
policies do not automatically change partition state
and thus do not change rebalancing assignments for such partitions.
Enum Constant and Description |
---|
IGNORE
If partition is lost, reset it's state and do not clear intermediate data.
|
READ_ONLY_ALL
All writes to the cache will be failed with an exception.
|
READ_ONLY_SAFE
All writes to the cache will be failed with an exception, reads will only be allowed for keys in
non-lost partitions.
|
READ_WRITE_ALL
All reads and writes will proceed as if all partitions were in a consistent state.
|
READ_WRITE_SAFE
All reads and writes will be allowed for keys in valid partitions.
|
Modifier and Type | Method and Description |
---|---|
static @Nullable PartitionLossPolicy |
fromOrdinal(byte ord)
Efficiently gets enumerated value from its ordinal.
|
static PartitionLossPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PartitionLossPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PartitionLossPolicy READ_ONLY_SAFE
public static final PartitionLossPolicy READ_ONLY_ALL
public static final PartitionLossPolicy READ_WRITE_SAFE
public static final PartitionLossPolicy READ_WRITE_ALL
public static final PartitionLossPolicy IGNORE
public static PartitionLossPolicy[] values()
for (PartitionLossPolicy c : PartitionLossPolicy.values()) System.out.println(c);
public static PartitionLossPolicy 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 null@Nullable public static @Nullable PartitionLossPolicy fromOrdinal(byte ord)
ord
- Ordinal value.null
if ordinal out of range.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019