public class CommandBatchService extends CommandAsyncService
Modifier and Type | Class and Description |
---|---|
static class |
CommandBatchService.ConnectionEntry |
static class |
CommandBatchService.Entry |
redisson, redissonReactive, redissonRx
Constructor and Description |
---|
CommandBatchService(ConnectionManager connectionManager) |
CommandBatchService(ConnectionManager connectionManager,
BatchOptions options) |
Modifier and Type | Method and Description |
---|---|
void |
add(RFuture<?> future,
List<CommandBatchService> services) |
<V,R> void |
async(boolean readOnlyMode,
NodeSource nodeSource,
Codec codec,
RedisCommand<V> command,
Object[] params,
RPromise<R> mainPromise,
int attempt,
boolean ignoreRedirect) |
protected <R> RPromise<R> |
createPromise() |
BatchResult<?> |
execute() |
BatchResult<?> |
execute(BatchOptions options) |
RFuture<List<?>> |
executeAsync() |
<R> RFuture<R> |
executeAsync(BatchOptions options) |
RFuture<Void> |
executeAsyncVoid() |
protected void |
free(CommandBatchService.Entry entry) |
protected <V> RFuture<RedisConnection> |
getConnection(boolean readOnlyMode,
NodeSource source,
RedisCommand<V> command) |
BatchOptions |
getOptions() |
protected void |
handle(RPromise<Void> mainPromise,
AtomicInteger slots,
RFuture<?> future) |
protected <V,R> void |
handleError(AsyncDetails<V,R> details,
RPromise<R> promise,
Throwable cause) |
protected <V,R> void |
handleSuccess(AsyncDetails<V,R> details,
RPromise<R> promise,
RedisCommand<?> command,
R res) |
protected boolean |
isEvalCacheActive() |
protected boolean |
isRedisBasedQueue() |
protected boolean |
isWaitCommand(BatchCommandData<?,?> c) |
protected <V,R> void |
releaseConnection(NodeSource source,
RFuture<RedisConnection> connectionFuture,
boolean isReadOnly,
RPromise<R> attemptPromise,
AsyncDetails<V,R> details) |
protected <R,V> void |
sendCommand(AsyncDetails<V,R> details,
RedisConnection connection) |
await, checkAttemptFuture, convertException, enableRedissonReferenceSupport, enableRedissonReferenceSupport, enableRedissonReferenceSupport, evalAllAsync, evalReadAsync, evalReadAsync, evalReadAsync, evalWriteAllAsync, evalWriteAsync, evalWriteAsync, free, get, getCodec, getConnectionManager, getObjectBuilder, isRedissonReferenceSupportEnabled, pollFromAnyAsync, readAllAsync, readAllAsync, readAllAsync, readAllAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readRandomAsync, readRandomAsync, syncSubscription, tryHandleReference, writeAllAsync, writeAllAsync, writeAllAsync, writeAsync, writeAsync, writeAsync, writeAsync
public CommandBatchService(ConnectionManager connectionManager)
public CommandBatchService(ConnectionManager connectionManager, BatchOptions options)
public BatchOptions getOptions()
public void add(RFuture<?> future, List<CommandBatchService> services)
public <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
protected <R> RPromise<R> createPromise()
createPromise
in class CommandAsyncService
protected <V,R> void releaseConnection(NodeSource source, RFuture<RedisConnection> connectionFuture, boolean isReadOnly, RPromise<R> attemptPromise, AsyncDetails<V,R> details)
releaseConnection
in class CommandAsyncService
protected <V,R> void handleSuccess(AsyncDetails<V,R> details, RPromise<R> promise, RedisCommand<?> command, R res)
handleSuccess
in class CommandAsyncService
protected <V,R> void handleError(AsyncDetails<V,R> details, RPromise<R> promise, Throwable cause)
handleError
in class CommandAsyncService
protected <R,V> void sendCommand(AsyncDetails<V,R> details, RedisConnection connection)
sendCommand
in class CommandAsyncService
protected <V> RFuture<RedisConnection> getConnection(boolean readOnlyMode, NodeSource source, RedisCommand<V> command)
getConnection
in class CommandAsyncService
public BatchResult<?> execute()
public BatchResult<?> execute(BatchOptions options)
public <R> RFuture<R> executeAsync(BatchOptions options)
protected boolean isRedisBasedQueue()
protected void free(CommandBatchService.Entry entry)
protected boolean isWaitCommand(BatchCommandData<?,?> c)
protected void handle(RPromise<Void> mainPromise, AtomicInteger slots, RFuture<?> future)
protected boolean isEvalCacheActive()
isEvalCacheActive
in class CommandAsyncService
Copyright © 2014–2019 The Redisson Project. All rights reserved.