public class CommandBatchService extends CommandAsyncService
Modifier and Type | Class and Description |
---|---|
static class |
CommandBatchService.ConnectionEntry |
static class |
CommandBatchService.Entry |
redisson, redissonReactive
Constructor and Description |
---|
CommandBatchService(ConnectionManager connectionManager) |
CommandBatchService(ConnectionManager connectionManager,
BatchOptions options) |
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,
RFuture<RedisConnection> connFuture) |
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) |
protected void |
handle(RPromise<Void> mainPromise,
AtomicInteger slots,
io.netty.util.concurrent.Future<?> future) |
protected <V,R> void |
handleError(AsyncDetails<V,R> details,
RPromise<R> promise,
Throwable cause) |
protected <R> void |
handleSuccess(RPromise<R> promise,
RedisCommand<?> command,
R res) |
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, evalAllAsync, evalReadAsync, evalReadAsync, evalReadAsync, evalWriteAllAsync, evalWriteAsync, evalWriteAsync, free, free, get, getConnectionManager, isRedissonReferenceSupportEnabled, readAllAsync, readAllAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readRandomAsync, syncSubscription, tryHandleReference, writeAllAsync, writeAllAsync, writeAsync, writeAsync, writeAsync
public CommandBatchService(ConnectionManager connectionManager)
public CommandBatchService(ConnectionManager connectionManager, BatchOptions options)
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, RFuture<RedisConnection> connFuture)
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 <R> void handleSuccess(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, io.netty.util.concurrent.Future<?> future)
Copyright © 2014–2018 The Redisson Project. All rights reserved.