Package org.redisson.command
Class CommandAsyncService
java.lang.Object
org.redisson.command.CommandAsyncService
- All Implemented Interfaces:
CommandAsyncExecutor
- Direct Known Subclasses:
CommandBatchService,CommandReactiveService,CommandRxService
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCommandAsyncService(CommandAsyncExecutor executor, boolean trackChanges) protectedCommandAsyncService(CommandAsyncExecutor executor, ObjectParams objectParams) CommandAsyncService(ConnectionManager connectionManager, RedissonObjectBuilder objectBuilder, RedissonObjectBuilder.ReferenceType referenceType) -
Method Summary
Modifier and TypeMethodDescription<V,R> RFuture <R> async(boolean readOnlyMode, NodeSource source, Codec codec, RedisCommand<V> command, Object[] params, boolean ignoreRedirect, boolean noRetry) copy(boolean trackChanges) protected final Object[]copy(ObjectParams objectParams) protected CommandBatchServicecreateCommandBatchService(int availableSlaves) createCommandBatchService(BatchOptions options) protected <R> CompletableFuture<R> io.netty.buffer.ByteBufio.netty.buffer.ByteBufencodeMapKey(Codec codec, Object value) io.netty.buffer.ByteBufencodeMapValue(Codec codec, Object value) <T,R> RFuture <R> evalAsync(NodeSource nodeSource, boolean readOnlyMode, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, boolean noRetry, Object... params) <T,R> RFuture <R> evalReadAsync(io.netty.buffer.ByteBuf key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) <T,R> RFuture <R> evalReadAsync(String key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) <T,R> RFuture <R> evalReadAsync(RedisClient client, String name, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) <T,R> RFuture <R> evalReadAsync(RedisClient client, MasterSlaveEntry entry, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) <T,R> RFuture <R> evalReadAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) <T,R> RFuture <R> evalReadBatchedAsync(Codec codec, RedisCommand<T> command, String script, List<Object> keys, SlotCallback<T, R> callback) <T,R> RFuture <R> evalWriteAsync(io.netty.buffer.ByteBuf key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) <T,R> RFuture <R> evalWriteAsync(String key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) <T,R> RFuture <R> evalWriteAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) <T,R> RFuture <R> evalWriteBatchedAsync(Codec codec, RedisCommand<T> command, String script, List<Object> keys, SlotCallback<T, R> callback) <T,R> RFuture <R> evalWriteNoRetryAsync(String key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) <R> List<CompletableFuture<R>> executeAllAsync(RedisCommand<?> command, Object... params) <R> List<CompletableFuture<R>> executeAllAsync(MasterSlaveEntry entry, RedisCommand<?> command, Object... params) <V> Vget(CompletableFuture<V> future) <V> V<V> VgetInterrupted(CompletableFuture<V> future) <V> VgetInterrupted(RFuture<V> future) <V> VgetNow(CompletableFuture<V> future) <T> CompletionStage<T> handleNoSync(CompletionStage<T> stage, Supplier<CompletionStage<?>> supplier) protected booleanbooleanboolean<V> RFuture<V> pollFromAnyAsync(String name, Codec codec, RedisCommand<?> command, long secondsTimeout, String... queueNames) <R> List<CompletableFuture<R>> readAllAsync(Codec codec, RedisCommand<?> command, Object... params) <R> List<CompletableFuture<R>> readAllAsync(RedisCommand<?> command, Object... params) <T,R> RFuture <R> readAsync(byte[] key, Codec codec, RedisCommand<T> command, Object... params) <T,R> RFuture <R> readAsync(io.netty.buffer.ByteBuf key, Codec codec, RedisCommand<T> command, Object... params) <T,R> RFuture <R> readAsync(String key, Codec codec, RedisCommand<T> command, Object... params) <T,R> RFuture <R> readAsync(String key, RedisCommand<T> command, Object... params) <T,R> RFuture <R> readAsync(RedisClient client, byte[] key, Codec codec, RedisCommand<T> command, Object... params) <T,R> RFuture <R> readAsync(RedisClient client, String name, Codec codec, RedisCommand<T> command, Object... params) <T,R> RFuture <R> readAsync(RedisClient client, Codec codec, RedisCommand<T> command, Object... params) <T,R> RFuture <R> readAsync(RedisClient client, MasterSlaveEntry entry, Codec codec, RedisCommand<T> command, Object... params) <T,R> RFuture <R> readAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> command, Object... params) <T,R> RFuture <R> readBatchedAsync(Codec codec, RedisCommand<T> command, SlotCallback<T, R> callback, Object... keys) <T,R> RFuture <R> readRandomAsync(Codec codec, RedisCommand<T> command, Object... params) <T,R> RFuture <R> readRandomAsync(RedisClient client, Codec codec, RedisCommand<T> command, Object... params) voidsetEvalShaROSupported(boolean value) <T> RFuture<T> syncedEval(String key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) <T> RFuture<T> syncedEvalWithRetry(String key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) <V> voidtransfer(CompletionStage<V> future1, CompletableFuture<V> future2) <R> List<CompletableFuture<R>> writeAllAsync(Codec codec, RedisCommand<?> command, Object... params) <R> List<CompletableFuture<R>> writeAllAsync(RedisCommand<?> command, Object... params) writeAllVoidAsync(RedisCommand<T> command, Object... params) <T,R> RFuture <R> writeAsync(byte[] key, Codec codec, RedisCommand<T> command, Object... params) <T,R> RFuture <R> writeAsync(io.netty.buffer.ByteBuf key, Codec codec, RedisCommand<T> command, Object... params) <T,R> RFuture <R> writeAsync(String key, Codec codec, RedisCommand<T> command, Object... params) <T,R> RFuture <R> writeAsync(String key, RedisCommand<T> command, Object... params) <T,R> RFuture <R> writeAsync(RedisClient client, Codec codec, RedisCommand<T> command, Object... params) <T,R> RFuture <R> writeAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> command, Object... params) <T,R> RFuture <R> writeBatchedAsync(Codec codec, RedisCommand<T> command, SlotCallback<T, R> callback, Object... keys)
-
Constructor Details
-
CommandAsyncService
-
CommandAsyncService
-
CommandAsyncService
public CommandAsyncService(ConnectionManager connectionManager, RedissonObjectBuilder objectBuilder, RedissonObjectBuilder.ReferenceType referenceType)
-
-
Method Details
-
copy
- Specified by:
copyin interfaceCommandAsyncExecutor
-
copy
- Specified by:
copyin interfaceCommandAsyncExecutor
-
getConnectionManager
- Specified by:
getConnectionManagerin interfaceCommandAsyncExecutor
-
getNow
- Specified by:
getNowin interfaceCommandAsyncExecutor
-
transfer
- Specified by:
transferin interfaceCommandAsyncExecutor
-
get
- Specified by:
getin interfaceCommandAsyncExecutor
-
get
- Specified by:
getin interfaceCommandAsyncExecutor
-
getInterrupted
- Specified by:
getInterruptedin interfaceCommandAsyncExecutor- Throws:
InterruptedException
-
getInterrupted
- Specified by:
getInterruptedin interfaceCommandAsyncExecutor- Throws:
InterruptedException
-
createPromise
-
readAsync
public <T,R> RFuture<R> readAsync(RedisClient client, MasterSlaveEntry entry, Codec codec, RedisCommand<T> command, Object... params) - Specified by:
readAsyncin interfaceCommandAsyncExecutor
-
readAsync
public <T,R> RFuture<R> readAsync(RedisClient client, String name, Codec codec, RedisCommand<T> command, Object... params) - Specified by:
readAsyncin interfaceCommandAsyncExecutor
-
readAsync
public <T,R> RFuture<R> readAsync(RedisClient client, byte[] key, Codec codec, RedisCommand<T> command, Object... params) - Specified by:
readAsyncin interfaceCommandAsyncExecutor
-
readAsync
public <T,R> RFuture<R> readAsync(RedisClient client, Codec codec, RedisCommand<T> command, Object... params) - Specified by:
readAsyncin interfaceCommandAsyncExecutor
-
readRandomAsync
- Specified by:
readRandomAsyncin interfaceCommandAsyncExecutor
-
readRandomAsync
public <T,R> RFuture<R> readRandomAsync(RedisClient client, Codec codec, RedisCommand<T> command, Object... params) - Specified by:
readRandomAsyncin interfaceCommandAsyncExecutor
-
writeAllVoidAsync
- Specified by:
writeAllVoidAsyncin interfaceCommandAsyncExecutor
-
writeAllAsync
- Specified by:
writeAllAsyncin interfaceCommandAsyncExecutor
-
writeAllAsync
public <R> List<CompletableFuture<R>> writeAllAsync(Codec codec, RedisCommand<?> command, Object... params) - Specified by:
writeAllAsyncin interfaceCommandAsyncExecutor
-
readAllAsync
public <R> List<CompletableFuture<R>> readAllAsync(Codec codec, RedisCommand<?> command, Object... params) - Specified by:
readAllAsyncin interfaceCommandAsyncExecutor
-
readAllAsync
- Specified by:
readAllAsyncin interfaceCommandAsyncExecutor
-
executeAllAsync
public <R> List<CompletableFuture<R>> executeAllAsync(MasterSlaveEntry entry, RedisCommand<?> command, Object... params) - Specified by:
executeAllAsyncin interfaceCommandAsyncExecutor
-
executeAllAsync
- Specified by:
executeAllAsyncin interfaceCommandAsyncExecutor
-
convertException
- Specified by:
convertExceptionin interfaceCommandAsyncExecutor
-
readAsync
public <T,R> RFuture<R> readAsync(String key, Codec codec, RedisCommand<T> command, Object... params) - Specified by:
readAsyncin interfaceCommandAsyncExecutor
-
readAsync
public <T,R> RFuture<R> readAsync(byte[] key, Codec codec, RedisCommand<T> command, Object... params) - Specified by:
readAsyncin interfaceCommandAsyncExecutor
-
readAsync
public <T,R> RFuture<R> readAsync(io.netty.buffer.ByteBuf key, Codec codec, RedisCommand<T> command, Object... params) - Specified by:
readAsyncin interfaceCommandAsyncExecutor
-
readAsync
public <T,R> RFuture<R> readAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> command, Object... params) - Specified by:
readAsyncin interfaceCommandAsyncExecutor
-
writeAsync
public <T,R> RFuture<R> writeAsync(RedisClient client, Codec codec, RedisCommand<T> command, Object... params) - Specified by:
writeAsyncin interfaceCommandAsyncExecutor
-
writeAsync
public <T,R> RFuture<R> writeAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> command, Object... params) - Specified by:
writeAsyncin interfaceCommandAsyncExecutor
-
readAsync
- Specified by:
readAsyncin interfaceCommandAsyncExecutor
-
evalReadAsync
public <T,R> RFuture<R> evalReadAsync(String key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) - Specified by:
evalReadAsyncin interfaceCommandAsyncExecutor
-
evalReadAsync
public <T,R> RFuture<R> evalReadAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) - Specified by:
evalReadAsyncin interfaceCommandAsyncExecutor
-
evalReadAsync
public <T,R> RFuture<R> evalReadAsync(RedisClient client, String name, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) - Specified by:
evalReadAsyncin interfaceCommandAsyncExecutor
-
evalReadAsync
public <T,R> RFuture<R> evalReadAsync(RedisClient client, MasterSlaveEntry entry, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) - Specified by:
evalReadAsyncin interfaceCommandAsyncExecutor
-
evalWriteAsync
public <T,R> RFuture<R> evalWriteAsync(String key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) - Specified by:
evalWriteAsyncin interfaceCommandAsyncExecutor
-
evalWriteAsync
public <T,R> RFuture<R> evalWriteAsync(io.netty.buffer.ByteBuf key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) - Specified by:
evalWriteAsyncin interfaceCommandAsyncExecutor
-
evalReadAsync
public <T,R> RFuture<R> evalReadAsync(io.netty.buffer.ByteBuf key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) - Specified by:
evalReadAsyncin interfaceCommandAsyncExecutor
-
evalWriteNoRetryAsync
public <T,R> RFuture<R> evalWriteNoRetryAsync(String key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) - Specified by:
evalWriteNoRetryAsyncin interfaceCommandAsyncExecutor
-
evalWriteAsync
public <T,R> RFuture<R> evalWriteAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) - Specified by:
evalWriteAsyncin interfaceCommandAsyncExecutor
-
isEvalCacheActive
protected boolean isEvalCacheActive() -
copy
-
isEvalShaROSupported
public boolean isEvalShaROSupported()- Specified by:
isEvalShaROSupportedin interfaceCommandAsyncExecutor
-
setEvalShaROSupported
public void setEvalShaROSupported(boolean value) - Specified by:
setEvalShaROSupportedin interfaceCommandAsyncExecutor
-
evalAsync
public <T,R> RFuture<R> evalAsync(NodeSource nodeSource, boolean readOnlyMode, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, boolean noRetry, Object... params) -
writeAsync
- Specified by:
writeAsyncin interfaceCommandAsyncExecutor
-
writeAsync
public <T,R> RFuture<R> writeAsync(String key, Codec codec, RedisCommand<T> command, Object... params) - Specified by:
writeAsyncin interfaceCommandAsyncExecutor
-
writeAsync
public <T,R> RFuture<R> writeAsync(byte[] key, Codec codec, RedisCommand<T> command, Object... params) - Specified by:
writeAsyncin interfaceCommandAsyncExecutor
-
writeAsync
public <T,R> RFuture<R> writeAsync(io.netty.buffer.ByteBuf key, Codec codec, RedisCommand<T> command, Object... params) - Specified by:
writeAsyncin interfaceCommandAsyncExecutor
-
async
public <V,R> RFuture<R> async(boolean readOnlyMode, NodeSource source, Codec codec, RedisCommand<V> command, Object[] params, boolean ignoreRedirect, boolean noRetry) - Specified by:
asyncin interfaceCommandAsyncExecutor
-
readBatchedAsync
public <T,R> RFuture<R> readBatchedAsync(Codec codec, RedisCommand<T> command, SlotCallback<T, R> callback, Object... keys) - Specified by:
readBatchedAsyncin interfaceCommandAsyncExecutor
-
writeBatchedAsync
public <T,R> RFuture<R> writeBatchedAsync(Codec codec, RedisCommand<T> command, SlotCallback<T, R> callback, Object... keys) - Specified by:
writeBatchedAsyncin interfaceCommandAsyncExecutor
-
evalWriteBatchedAsync
public <T,R> RFuture<R> evalWriteBatchedAsync(Codec codec, RedisCommand<T> command, String script, List<Object> keys, SlotCallback<T, R> callback) - Specified by:
evalWriteBatchedAsyncin interfaceCommandAsyncExecutor
-
evalReadBatchedAsync
public <T,R> RFuture<R> evalReadBatchedAsync(Codec codec, RedisCommand<T> command, String script, List<Object> keys, SlotCallback<T, R> callback) - Specified by:
evalReadBatchedAsyncin interfaceCommandAsyncExecutor
-
getObjectBuilder
- Specified by:
getObjectBuilderin interfaceCommandAsyncExecutor
-
getServiceManager
- Specified by:
getServiceManagerin interfaceCommandAsyncExecutor
-
encode
- Specified by:
encodein interfaceCommandAsyncExecutor
-
encodeMapKey
- Specified by:
encodeMapKeyin interfaceCommandAsyncExecutor
-
encodeMapValue
- Specified by:
encodeMapValuein interfaceCommandAsyncExecutor
-
pollFromAnyAsync
public <V> RFuture<V> pollFromAnyAsync(String name, Codec codec, RedisCommand<?> command, long secondsTimeout, String... queueNames) - Specified by:
pollFromAnyAsyncin interfaceCommandAsyncExecutor
-
handleNoSync
public <T> CompletionStage<T> handleNoSync(CompletionStage<T> stage, Supplier<CompletionStage<?>> supplier) - Specified by:
handleNoSyncin interfaceCommandAsyncExecutor
-
syncedEvalWithRetry
public <T> RFuture<T> syncedEvalWithRetry(String key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) - Specified by:
syncedEvalWithRetryin interfaceCommandAsyncExecutor
-
syncedEval
public <T> RFuture<T> syncedEval(String key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params) - Specified by:
syncedEvalin interfaceCommandAsyncExecutor
-
createCommandBatchService
-
createCommandBatchService
- Specified by:
createCommandBatchServicein interfaceCommandAsyncExecutor
-
isTrackChanges
public boolean isTrackChanges()- Specified by:
isTrackChangesin interfaceCommandAsyncExecutor
-