Package org.redisson.command
Class CommandBatchService
java.lang.Object
org.redisson.command.CommandAsyncService
org.redisson.command.CommandBatchService
- All Implemented Interfaces:
BatchService
,CommandAsyncExecutor
- Author:
- Nikita Koksharov
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
ConstructorDescriptionCommandBatchService
(CommandAsyncExecutor executor) CommandBatchService
(CommandAsyncExecutor executor, BatchOptions options) CommandBatchService
(CommandAsyncExecutor executor, BatchOptions options, RedissonObjectBuilder.ReferenceType referenceType) CommandBatchService
(CommandAsyncExecutor executor, RedissonObjectBuilder.ReferenceType referenceType) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(CompletableFuture<?> future, List<CommandBatchService> services) <V,
R> RFuture <R> async
(boolean readOnlyMode, NodeSource nodeSource, Codec codec, RedisCommand<V> command, Object[] params, boolean ignoreRedirect, boolean noRetry) protected Throwable
cause
(CompletableFuture<?> future) protected CommandBatchService
createCommandBatchService
(int availableSlaves) <R> CompletableFuture
<R> void
discard()
BatchResult
<?> execute()
RFuture
<BatchResult<?>> protected boolean
boolean
protected boolean
protected boolean
isWaitCommand
(CommandData<?, ?> c) Methods inherited from class org.redisson.command.CommandAsyncService
convertException, copy, copy, copy, createCommandBatchService, encode, encodeMapKey, encodeMapValue, evalAsync, evalReadAsync, evalReadAsync, evalReadAsync, evalReadAsync, evalReadAsync, evalReadBatchedAsync, evalWriteAsync, evalWriteAsync, evalWriteAsync, evalWriteBatchedAsync, evalWriteNoRetryAsync, executeAllAsync, executeAllAsync, get, get, getConnectionManager, getInterrupted, getInterrupted, getNow, getObjectBuilder, getServiceManager, handleNoSync, isEvalShaROSupported, isTrackChanges, pollFromAnyAsync, readAllAsync, readAllAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readBatchedAsync, readRandomAsync, readRandomAsync, setEvalShaROSupported, syncedEval, syncedEvalNoRetry, syncedEvalWithRetry, transfer, writeAllAsync, writeAllAsync, writeAllVoidAsync, writeAsync, writeAsync, writeAsync, writeAsync, writeAsync, writeAsync, writeBatchedAsync
-
Constructor Details
-
CommandBatchService
-
CommandBatchService
public CommandBatchService(CommandAsyncExecutor executor, RedissonObjectBuilder.ReferenceType referenceType) -
CommandBatchService
-
CommandBatchService
public CommandBatchService(CommandAsyncExecutor executor, BatchOptions options, RedissonObjectBuilder.ReferenceType referenceType)
-
-
Method Details
-
getOptions
-
add
-
async
public <V,R> RFuture<R> async(boolean readOnlyMode, NodeSource nodeSource, Codec codec, RedisCommand<V> command, Object[] params, boolean ignoreRedirect, boolean noRetry) - Specified by:
async
in interfaceCommandAsyncExecutor
- Overrides:
async
in classCommandAsyncService
-
createPromise
- Overrides:
createPromise
in classCommandAsyncService
-
discard
public void discard() -
discardAsync
-
execute
-
executeAsyncVoid
-
isExecuted
public boolean isExecuted() -
executeAsync
-
cause
-
isRedisBasedQueue
protected boolean isRedisBasedQueue() -
isWaitCommand
-
isEvalCacheActive
protected boolean isEvalCacheActive()- Overrides:
isEvalCacheActive
in classCommandAsyncService
-
createCommandBatchService
- Overrides:
createCommandBatchService
in classCommandAsyncService
-