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
public class RedisQueuedBatchExecutor<V,R> extends BaseRedisBatchExecutor<V,R>
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor 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, boolean noRetry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class org.redisson.command.BaseRedisBatchExecutor
addBatchCommandData, getEntry
-
Methods inherited from class org.redisson.command.RedisExecutor
checkAttemptPromise, convertException, free, free, getCodec, getRedisClient, handleResult, isResendAllowed, onException
-
-
-
-
Constructor Detail
-
RedisQueuedBatchExecutor
public 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, boolean noRetry)
-
-
Method Detail
-
execute
public void execute()
- Overrides:
execute
in classRedisExecutor<V,R>
-
releaseConnection
protected void releaseConnection(RPromise<R> attemptPromise, RFuture<RedisConnection> connectionFuture)
- Overrides:
releaseConnection
in classRedisExecutor<V,R>
-
handleSuccess
protected void handleSuccess(RPromise<R> promise, RFuture<RedisConnection> connectionFuture, R res) throws ReflectiveOperationException
- Overrides:
handleSuccess
in classRedisExecutor<V,R>
- Throws:
ReflectiveOperationException
-
handleError
protected void handleError(RFuture<RedisConnection> connectionFuture, Throwable cause)
- Overrides:
handleError
in classRedisExecutor<V,R>
-
sendCommand
protected void sendCommand(RPromise<R> attemptPromise, RedisConnection connection)
- Overrides:
sendCommand
in classRedisExecutor<V,R>
-
getConnection
protected RFuture<RedisConnection> getConnection()
- Overrides:
getConnection
in classRedisExecutor<V,R>
-
-