Enum WriteConsistency

Object
Enum<WriteConsistency>
kalix.javasdk.replicatedentity.WriteConsistency
All Implemented Interfaces:
Serializable, Comparable<WriteConsistency>

public enum WriteConsistency extends Enum<WriteConsistency>
Write consistency setting for replication of state updates for Replicated Entities.
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Updates 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 Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • LOCAL

      public static final WriteConsistency LOCAL
      Updates will only be written to the local replica immediately, and then asynchronously distributed to other replicas in the background.
    • MAJORITY

      public static final WriteConsistency MAJORITY
      Updates will be written immediately to a majority of replicas, and then asynchronously distributed to remaining replicas in the background.
    • ALL

      public static final WriteConsistency ALL
      Updates will be written immediately to all replicas.
  • Method Details

    • values

      public static WriteConsistency[] 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

      public static WriteConsistency valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null