public enum PartitionLossPolicy extends Enum<PartitionLossPolicy>
A partition is considered lost if all owning nodes had left a topology.
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 a partition was lost silently ignore it and allow any operations with a partition.
|
READ_ONLY_ALL
Deprecated.
READ_ONLY_SAFE is used instead. |
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
Deprecated.
READ_WRITE_SAFE is used instead. |
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
READ_ONLY_SAFE
is used instead.public static final PartitionLossPolicy READ_WRITE_SAFE
public static final PartitionLossPolicy READ_WRITE_ALL
READ_WRITE_SAFE
is used instead.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.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024