Enum Durability

    • Enum Constant Detail

      • DEFAULT

        public static final Durability DEFAULT
        Use the durability as specified by the table or system configuration.
      • NONE

        public static final Durability NONE
        Don't bother writing mutations to the write-ahead log.
      • LOG

        public static final Durability LOG
        Write mutations the the write-ahead log. Data may be sitting the the servers output buffers, and not replicated anywhere.
      • FLUSH

        public static final Durability FLUSH
        Write mutations to the write-ahead log, and ensure the data is stored on remote servers, but perhaps not on persistent storage.
      • SYNC

        public static final Durability SYNC
        Write mutations to the write-ahead log, and ensure the data is saved to persistent storage.
    • Method Detail

      • values

        public static Durability[] 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 (Durability c : Durability.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Durability 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