Enum ExecutionContext

    • Enum Constant Detail

      • CONNECTION

        public static final ExecutionContext CONNECTION
        Allow commands to execute only on the current connection. If the connection fails, an exception will be thrown.
      • NODE

        public static final ExecutionContext NODE
        Allow commands to executed on any connection, as long as a new connection is made to the same node as the previous command was executed on. If a new connection is made to a different node, then an exception will be thrown.
      • CLUSTER

        public static final ExecutionContext CLUSTER
        Allow commands to executed on any connection and on any node. An exception will only be thrown if the client cannot connect to any node.
    • Method Detail

      • values

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

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