V - type of valueR - type of returned valuepublic class RedisQueuedBatchExecutor<V,R> extends BaseRedisBatchExecutor<V,R>
| Constructor and Description |
|---|
RedisQueuedBatchExecutor(boolean readOnlyMode,
NodeSource source,
Codec codec,
RedisCommand<V> command,
Object[] params,
RPromise<R> mainPromise,
boolean ignoreRedirect,
ConnectionManager connectionManager,
RedissonObjectBuilder objectBuilder,
ConcurrentMap<MasterSlaveEntry,CommandBatchService.Entry> commands,
ConcurrentMap<MasterSlaveEntry,CommandBatchService.ConnectionEntry> connections,
BatchOptions options,
AtomicInteger index,
AtomicBoolean executed,
AsyncCountDownLatch latch,
RedissonObjectBuilder.ReferenceType referenceType) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected RFuture<RedisConnection> |
getConnection() |
protected void |
handleError(RFuture<RedisConnection> connectionFuture,
Throwable cause) |
protected void |
handleSuccess(RPromise<R> promise,
RFuture<RedisConnection> connectionFuture,
R res) |
protected void |
releaseConnection(RPromise<R> attemptPromise,
RFuture<RedisConnection> connectionFuture) |
protected void |
sendCommand(RPromise<R> attemptPromise,
RedisConnection connection) |
addBatchCommandData, getEntrycheckAttemptPromise, convertException, free, free, getCodec, getRedisClient, handleResult, isResendAllowed, onExceptionpublic RedisQueuedBatchExecutor(boolean readOnlyMode,
NodeSource source,
Codec codec,
RedisCommand<V> command,
Object[] params,
RPromise<R> mainPromise,
boolean ignoreRedirect,
ConnectionManager connectionManager,
RedissonObjectBuilder objectBuilder,
ConcurrentMap<MasterSlaveEntry,CommandBatchService.Entry> commands,
ConcurrentMap<MasterSlaveEntry,CommandBatchService.ConnectionEntry> connections,
BatchOptions options,
AtomicInteger index,
AtomicBoolean executed,
AsyncCountDownLatch latch,
RedissonObjectBuilder.ReferenceType referenceType)
public void execute()
execute in class RedisExecutor<V,R>protected void releaseConnection(RPromise<R> attemptPromise, RFuture<RedisConnection> connectionFuture)
releaseConnection in class RedisExecutor<V,R>protected void handleSuccess(RPromise<R> promise, RFuture<RedisConnection> connectionFuture, R res) throws ReflectiveOperationException
handleSuccess in class RedisExecutor<V,R>ReflectiveOperationExceptionprotected void handleError(RFuture<RedisConnection> connectionFuture, Throwable cause)
handleError in class RedisExecutor<V,R>protected void sendCommand(RPromise<R> attemptPromise, RedisConnection connection)
sendCommand in class RedisExecutor<V,R>protected RFuture<RedisConnection> getConnection()
getConnection in class RedisExecutor<V,R>Copyright © 2014–2021 Redisson. All rights reserved.