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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionCommandBatchService(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 TypeMethodDescriptionvoidadd(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 Throwablecause(CompletableFuture<?> future) protected CommandBatchServicecreateCommandBatchService(int availableSlaves) <R> CompletableFuture<R> voiddiscard()BatchResult<?> execute()RFuture<BatchResult<?>> protected booleanbooleanprotected booleanprotected booleanisWaitCommand(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:
asyncin interfaceCommandAsyncExecutor- Overrides:
asyncin classCommandAsyncService
-
createPromise
- Overrides:
createPromisein classCommandAsyncService
-
discard
public void discard() -
discardAsync
-
execute
-
executeAsyncVoid
-
isExecuted
public boolean isExecuted() -
executeAsync
-
cause
-
isRedisBasedQueue
protected boolean isRedisBasedQueue() -
isWaitCommand
-
isEvalCacheActive
protected boolean isEvalCacheActive()- Overrides:
isEvalCacheActivein classCommandAsyncService
-
createCommandBatchService
- Overrides:
createCommandBatchServicein classCommandAsyncService
-