Enum Reliability
- java.lang.Object
-
- java.lang.Enum<Reliability>
-
- org.infinispan.counter.configuration.Reliability
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Reliability>
public enum Reliability extends java.lang.Enum<Reliability>
Reliability mode available forCounterManager
.- Since:
- 9.0
- Author:
- Pedro Ruivo
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AVAILABLE
If the cluster splits in multiple partition, all of them are allowed to continue read/update the counter.CONSISTENT
If the cluster splits in multiple partitions, the majority partition is allowed to read/update the counter if the counter is available on that partition.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Reliability
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Reliability[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AVAILABLE
public static final Reliability AVAILABLE
If the cluster splits in multiple partition, all of them are allowed to continue read/update the counter.When the cluster merges back, one partition's updates are kept the others partition's updates are lost.
-
CONSISTENT
public static final Reliability CONSISTENT
If the cluster splits in multiple partitions, the majority partition is allowed to read/update the counter if the counter is available on that partition.The minority partition is allowed to read if the counter is available on that partition.
When the cluster merges back, the partitions conciliates the counter's value.
-
-
Method Detail
-
values
public static Reliability[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Reliability c : Reliability.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Reliability valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-