Package kalix.javasdk.replicatedentity
Enum WriteConsistency
- All Implemented Interfaces:
Serializable
,Comparable<WriteConsistency>
Write consistency setting for replication of state updates for Replicated Entities.
-
Enum Constant Summary
Enum ConstantDescriptionUpdates will be written immediately to all replicas.Updates will only be written to the local replica immediately, and then asynchronously distributed to other replicas in the background.Updates will be written immediately to a majority of replicas, and then asynchronously distributed to remaining replicas in the background. -
Method Summary
Modifier and TypeMethodDescriptionstatic WriteConsistency
Returns the enum constant of this type with the specified name.static WriteConsistency[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LOCAL
Updates will only be written to the local replica immediately, and then asynchronously distributed to other replicas in the background. -
MAJORITY
Updates will be written immediately to a majority of replicas, and then asynchronously distributed to remaining replicas in the background. -
ALL
Updates will be written immediately to all replicas.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-