Enum WriteConsistency

  • All Implemented Interfaces:
    java.io.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
      ALL
      Updates will be written immediately to all replicas.
      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.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static WriteConsistency valueOf​(String name)
      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.
      • 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 Detail

      • 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 Detail

      • values

        public static WriteConsistency[] 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 (WriteConsistency c : WriteConsistency.values())
            System.out.println(c);
        
        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