Package org.redisson.command
Class RedisQueuedBatchExecutor<V,R>
java.lang.Object
org.redisson.command.RedisExecutor<V,R>
org.redisson.command.BaseRedisBatchExecutor<V,R>
org.redisson.command.RedisQueuedBatchExecutor<V,R>
- Type Parameters:
V- type of valueR- type of returned value
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorsConstructorDescriptionRedisQueuedBatchExecutor(boolean readOnlyMode, NodeSource source, Codec codec, RedisCommand<V> command, Object[] params, CompletableFuture<R> mainPromise, boolean ignoreRedirect, ConnectionManager connectionManager, RedissonObjectBuilder objectBuilder, ConcurrentMap<NodeSource, CommandBatchService.Entry> commands, ConcurrentMap<MasterSlaveEntry, CommandBatchService.ConnectionEntry> connections, BatchOptions options, AtomicInteger index, AtomicBoolean executed, RedissonObjectBuilder.ReferenceType referenceType, boolean noRetry, Map<MasterSlaveEntry, CommandBatchService.Entry> aggregatedCommands) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()protected CompletableFuture<RedisConnection> protected voidhandleError(CompletableFuture<RedisConnection> connectionFuture, Throwable cause) protected voidhandleSuccess(CompletableFuture<R> promise, CompletableFuture<RedisConnection> connectionFuture, R res) protected voidreleaseConnection(CompletableFuture<R> attemptPromise, CompletableFuture<RedisConnection> connectionFuture) protected voidsendCommand(CompletableFuture<R> attemptPromise, RedisConnection connection) Methods inherited from class org.redisson.command.BaseRedisBatchExecutor
addBatchCommandDataMethods inherited from class org.redisson.command.RedisExecutor
cause, checkAttemptPromise, convertException, free, free, getCodec, getNow, getRedisClient, handleResult, isResendAllowed, onException
-
Constructor Details
-
RedisQueuedBatchExecutor
public RedisQueuedBatchExecutor(boolean readOnlyMode, NodeSource source, Codec codec, RedisCommand<V> command, Object[] params, CompletableFuture<R> mainPromise, boolean ignoreRedirect, ConnectionManager connectionManager, RedissonObjectBuilder objectBuilder, ConcurrentMap<NodeSource, CommandBatchService.Entry> commands, ConcurrentMap<MasterSlaveEntry, CommandBatchService.ConnectionEntry> connections, BatchOptions options, AtomicInteger index, AtomicBoolean executed, RedissonObjectBuilder.ReferenceType referenceType, boolean noRetry, Map<MasterSlaveEntry, CommandBatchService.Entry> aggregatedCommands)
-
-
Method Details
-
execute
public void execute()- Overrides:
executein classRedisExecutor<V,R>
-
releaseConnection
protected void releaseConnection(CompletableFuture<R> attemptPromise, CompletableFuture<RedisConnection> connectionFuture) - Overrides:
releaseConnectionin classRedisExecutor<V,R>
-
handleSuccess
protected void handleSuccess(CompletableFuture<R> promise, CompletableFuture<RedisConnection> connectionFuture, R res) throws ReflectiveOperationException - Overrides:
handleSuccessin classRedisExecutor<V,R> - Throws:
ReflectiveOperationException
-
handleError
- Overrides:
handleErrorin classRedisExecutor<V,R>
-
sendCommand
- Overrides:
sendCommandin classRedisExecutor<V,R>
-
getConnection
- Overrides:
getConnectionin classRedisExecutor<V,R>
-