Enum WriteResult

    • Enum Constant Detail

      • SUCCESS

        public static final WriteResult SUCCESS

        Indicates that the write operation was successful

        Since:
        Rhino 2.6.1
      • FAILURE_CAS_REJECTED

        public static final WriteResult FAILURE_CAS_REJECTED

        Indicates that the write operation failed because the expected value for the key before the write did not match the actual value.

        Since:
        Rhino 2.6.1
      • FAILURE_EXCEPTION

        public static final WriteResult FAILURE_EXCEPTION

        Indicates that the write operation failed because an exception occurred.

        Since:
        Rhino 2.6.1
      • FAILURE_OTHER

        public static final WriteResult FAILURE_OTHER

        Indicates that the write operation failed due to some reason that was not CAS or exception related.

        Since:
        Rhino 2.6.1
    • Method Detail

      • values

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

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