Enum BatchOptions.ExecutionMode

java.lang.Object
java.lang.Enum<BatchOptions.ExecutionMode>
org.redisson.api.BatchOptions.ExecutionMode
All Implemented Interfaces:
Serializable, Comparable<BatchOptions.ExecutionMode>, java.lang.constant.Constable
Enclosing class:
BatchOptions

public static enum BatchOptions.ExecutionMode extends Enum<BatchOptions.ExecutionMode>
  • Enum Constant Details

    • REDIS_READ_ATOMIC

      public static final BatchOptions.ExecutionMode REDIS_READ_ATOMIC
      Store batched invocations in Redis and execute them atomically as a single command.

      Please note, that in cluster mode all objects should be on the same cluster slot. https://github.com/antirez/redis/issues/3682

    • REDIS_WRITE_ATOMIC

      public static final BatchOptions.ExecutionMode REDIS_WRITE_ATOMIC
      Store batched invocations in Redis and execute them atomically as a single command.

      Please note, that in cluster mode all objects should be on the same cluster slot. https://github.com/antirez/redis/issues/3682

    • IN_MEMORY

      public static final BatchOptions.ExecutionMode IN_MEMORY
      Store batched invocations in memory on Redisson side and execute them on Redis.

      Default mode

    • IN_MEMORY_ATOMIC

      public static final BatchOptions.ExecutionMode IN_MEMORY_ATOMIC
      Store batched invocations on Redisson side and executes them atomically on Redis as a single command.

      Please note, that in cluster mode all objects should be on the same cluster slot. https://github.com/antirez/redis/issues/3682

  • Method Details

    • values

      public static BatchOptions.ExecutionMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static BatchOptions.ExecutionMode 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