public static enum BatchOptions.ExecutionMode extends Enum<BatchOptions.ExecutionMode>
Enum Constant and Description |
---|
IN_MEMORY
Store batched invocations in memory on Redisson side and execute them on Redis.
|
IN_MEMORY_ATOMIC
Store batched invocations on Redisson side and executes them atomically on Redis as a single command.
|
REDIS_READ_ATOMIC
Store batched invocations in Redis and execute them atomically as a single command.
|
REDIS_WRITE_ATOMIC
Store batched invocations in Redis and execute them atomically as a single command.
|
Modifier and Type | Method and Description |
---|---|
static BatchOptions.ExecutionMode |
valueOf(String name)
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.
|
public static final BatchOptions.ExecutionMode REDIS_READ_ATOMIC
Please note, that in cluster mode all objects should be on the same cluster slot. https://github.com/antirez/redis/issues/3682
public static final BatchOptions.ExecutionMode REDIS_WRITE_ATOMIC
Please note, that in cluster mode all objects should be on the same cluster slot. https://github.com/antirez/redis/issues/3682
public static final BatchOptions.ExecutionMode IN_MEMORY
Default mode
public static final BatchOptions.ExecutionMode IN_MEMORY_ATOMIC
Please note, that in cluster mode all objects should be on the same cluster slot. https://github.com/antirez/redis/issues/3682
public static BatchOptions.ExecutionMode[] values()
for (BatchOptions.ExecutionMode c : BatchOptions.ExecutionMode.values()) System.out.println(c);
public static BatchOptions.ExecutionMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2014–2018 The Redisson Project. All rights reserved.