Enum Param.ReplicationMode

    • Enum Constant Detail

      • ASYNC

        public static final Param.ReplicationMode ASYNC
        Invoking node does not know when the owners are updated nor if the command fails.
    • Method Detail

      • values

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

        public static Param.ReplicationMode 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
      • id

        public int id()
        Description copied from interface: Param
        A parameter's identifier. Each parameter must have a different id.

        A numeric id makes it flexible enough to be stored in collections that take up low resources, such as arrays.

        Specified by:
        id in interface Param<Param.ReplicationMode>
      • valueOf

        public static Param.ReplicationMode valueOf​(int ordinal)
        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:
        ordinal - 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