public class CommandBatchService extends CommandAsyncService
Modifier and Type | Class and Description |
---|---|
static class |
CommandBatchService.Entry |
redisson, redissonReactive
Constructor and Description |
---|
CommandBatchService(ConnectionManager connectionManager) |
Modifier and Type | Method and Description |
---|---|
void |
add(RFuture<?> future,
List<CommandBatchService> services) |
protected <V,R> void |
async(boolean readOnlyMode,
NodeSource nodeSource,
Codec codec,
RedisCommand<V> command,
Object[] params,
RPromise<R> mainPromise,
int attempt,
boolean ignoreRedirect) |
BatchResult<?> |
execute() |
BatchResult<?> |
execute(int syncSlaves,
long syncTimeout,
boolean noResult,
long responseTimeout,
int retryAttempts,
long retryInterval,
boolean atomic) |
RFuture<List<?>> |
executeAsync() |
<R> RFuture<R> |
executeAsync(int syncSlaves,
long syncTimeout,
boolean skipResult,
long responseTimeout,
int retryAttempts,
long retryInterval,
boolean atomic) |
RFuture<Void> |
executeAsyncVoid() |
protected void |
free(CommandBatchService.Entry entry) |
protected void |
handle(RPromise<Void> mainPromise,
AtomicInteger slots,
io.netty.util.concurrent.Future<?> future) |
protected boolean |
isWaitCommand(BatchCommandData<?,?> c) |
await, convertException, enableRedissonReferenceSupport, enableRedissonReferenceSupport, evalAllAsync, evalReadAsync, evalReadAsync, evalReadAsync, evalWriteAllAsync, evalWriteAsync, evalWriteAsync, free, free, get, getConnectionManager, isRedissonReferenceSupportEnabled, readAllAsync, readAllAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readRandomAsync, releaseConnection, syncSubscription, tryHandleReference, writeAllAsync, writeAllAsync, writeAsync, writeAsync, writeAsync
public CommandBatchService(ConnectionManager connectionManager)
public void add(RFuture<?> future, List<CommandBatchService> services)
protected <V,R> void async(boolean readOnlyMode, NodeSource nodeSource, Codec codec, RedisCommand<V> command, Object[] params, RPromise<R> mainPromise, int attempt, boolean ignoreRedirect)
async
in class CommandAsyncService
public BatchResult<?> execute()
public BatchResult<?> execute(int syncSlaves, long syncTimeout, boolean noResult, long responseTimeout, int retryAttempts, long retryInterval, boolean atomic)
public <R> RFuture<R> executeAsync(int syncSlaves, long syncTimeout, boolean skipResult, long responseTimeout, int retryAttempts, long retryInterval, boolean atomic)
protected void free(CommandBatchService.Entry entry)
protected boolean isWaitCommand(BatchCommandData<?,?> c)
protected void handle(RPromise<Void> mainPromise, AtomicInteger slots, io.netty.util.concurrent.Future<?> future)
Copyright © 2014–2018 The Redisson Project. All rights reserved.