public class CommandBatchExecutorService extends CommandExecutorService
Modifier and Type | Class and Description |
---|---|
static class |
CommandBatchExecutorService.CommandEntry |
static class |
CommandBatchExecutorService.Entry |
Constructor and Description |
---|
CommandBatchExecutorService(ConnectionManager connectionManager) |
Modifier and Type | Method and Description |
---|---|
protected <V,R> void |
async(boolean readOnlyMode,
NodeSource nodeSource,
MultiDecoder<Object> messageDecoder,
Codec codec,
RedisCommand<V> command,
Object[] params,
io.netty.util.concurrent.Promise<R> mainPromise,
int attempt) |
<T,R> R |
evalRead(String key,
Codec codec,
RedisCommand<T> evalCommandType,
String script,
List<Object> keys,
Object... params) |
<T,R> R |
evalRead(String key,
RedisCommand<T> evalCommandType,
String script,
List<Object> keys,
Object... params) |
<T,R> R |
evalWrite(String key,
Codec codec,
RedisCommand<T> evalCommandType,
String script,
List<Object> keys,
Object... params) |
<T,R> R |
evalWrite(String key,
RedisCommand<T> evalCommandType,
String script,
List<Object> keys,
Object... params) |
List<?> |
execute() |
void |
execute(CommandBatchExecutorService.Entry entry,
NodeSource source,
io.netty.util.concurrent.Promise<Void> mainPromise,
AtomicInteger slots,
int attempt) |
io.netty.util.concurrent.Future<List<?>> |
executeAsync() |
io.netty.util.concurrent.Future<Void> |
executeAsyncVoid() |
<T,R> R |
read(String key,
Codec codec,
RedisCommand<T> command,
Object... params) |
<R> R |
read(String key,
Codec codec,
SyncOperation<R> operation) |
<T,R> R |
read(String key,
RedisCommand<T> command,
Object... params) |
<T,R> R |
write(String key,
Codec codec,
RedisCommand<T> command,
Object... params) |
<R> R |
write(String key,
Codec codec,
SyncOperation<R> operation) |
<T,R> R |
write(String key,
RedisCommand<T> command,
Object... params) |
allAsync, convertException, evalAllAsync, evalReadAsync, evalReadAsync, evalWriteAllAsync, evalWriteAsync, evalWriteAsync, get, getConnectionManager, read, read, readAllAsync, readAsync, readAsync, readAsync, readRandomAsync, write, writeAllAsync, writeAllAsync, writeAsync, writeAsync, writeAsync
public CommandBatchExecutorService(ConnectionManager connectionManager)
protected <V,R> void async(boolean readOnlyMode, NodeSource nodeSource, MultiDecoder<Object> messageDecoder, Codec codec, RedisCommand<V> command, Object[] params, io.netty.util.concurrent.Promise<R> mainPromise, int attempt)
async
in class CommandExecutorService
public List<?> execute()
public io.netty.util.concurrent.Future<Void> executeAsyncVoid()
public io.netty.util.concurrent.Future<List<?>> executeAsync()
public void execute(CommandBatchExecutorService.Entry entry, NodeSource source, io.netty.util.concurrent.Promise<Void> mainPromise, AtomicInteger slots, int attempt)
public <T,R> R evalRead(String key, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params)
evalRead
in interface CommandExecutor
evalRead
in class CommandExecutorService
public <T,R> R evalRead(String key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params)
evalRead
in interface CommandExecutor
evalRead
in class CommandExecutorService
public <T,R> R evalWrite(String key, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params)
evalWrite
in interface CommandExecutor
evalWrite
in class CommandExecutorService
public <T,R> R evalWrite(String key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params)
evalWrite
in interface CommandExecutor
evalWrite
in class CommandExecutorService
public <R> R read(String key, Codec codec, SyncOperation<R> operation)
read
in interface CommandExecutor
read
in class CommandExecutorService
public <R> R write(String key, Codec codec, SyncOperation<R> operation)
write
in interface CommandExecutor
write
in class CommandExecutorService
public <T,R> R read(String key, Codec codec, RedisCommand<T> command, Object... params)
read
in interface CommandExecutor
read
in class CommandExecutorService
public <T,R> R read(String key, RedisCommand<T> command, Object... params)
read
in interface CommandExecutor
read
in class CommandExecutorService
public <T,R> R write(String key, Codec codec, RedisCommand<T> command, Object... params)
write
in interface CommandExecutor
write
in class CommandExecutorService
public <T,R> R write(String key, RedisCommand<T> command, Object... params)
write
in interface CommandExecutor
write
in class CommandExecutorService
Copyright © 2014–2015. All rights reserved.