Package org.redisson.api
Enum BatchOptions.ExecutionMode
- All Implemented Interfaces:
Serializable
,Comparable<BatchOptions.ExecutionMode>
,java.lang.constant.Constable
- Enclosing class:
BatchOptions
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionStore batched invocations in memory on Redisson side and execute them on Redis.Store batched invocations on Redisson side and executes them atomically on Redis as a single command.Store batched invocations in Redis and execute them atomically as a single command.Store batched invocations in Redis and execute them atomically as a single command. -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchOptions.ExecutionMode
Returns the enum constant of this type with the specified name.static BatchOptions.ExecutionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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
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
Store batched invocations in memory on Redisson side and execute them on Redis.Default mode
-
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
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
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 nameNullPointerException
- if the argument is null
-