public class CommandAsyncService extends Object implements CommandAsyncExecutor
| Constructor and Description |
|---|
CommandAsyncService(ConnectionManager connectionManager,
RedissonObjectBuilder objectBuilder,
RedissonObjectBuilder.ReferenceType referenceType) |
| Modifier and Type | Method and Description |
|---|---|
<V,R> void |
async(boolean readOnlyMode,
NodeSource source,
Codec codec,
RedisCommand<V> command,
Object[] params,
RPromise<R> mainPromise,
boolean ignoreRedirect) |
<V> RedisException |
convertException(RFuture<V> future) |
protected <R> RPromise<R> |
createPromise() |
io.netty.buffer.ByteBuf |
encode(Codec codec,
Object value) |
io.netty.buffer.ByteBuf |
encodeMapKey(Codec codec,
Object value) |
io.netty.buffer.ByteBuf |
encodeMapValue(Codec codec,
Object value) |
<T,R> RFuture<R> |
evalAllAsync(boolean readOnlyMode,
RedisCommand<T> command,
SlotCallback<T,R> callback,
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> |
evalReadAsync(RedisClient client,
String name,
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> |
evalWriteAllAsync(RedisCommand<T> command,
SlotCallback<T,R> callback,
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> |
evalWriteAsync(String key,
Codec codec,
RedisCommand<T> evalCommandType,
String script,
List<Object> keys,
Object... params) |
<V> V |
get(RFuture<V> future) |
ConnectionManager |
getConnectionManager() |
<V> V |
getInterrupted(RFuture<V> future) |
RedissonObjectBuilder |
getObjectBuilder() |
protected boolean |
isEvalCacheActive() |
<V> RFuture<V> |
pollFromAnyAsync(String name,
Codec codec,
RedisCommand<Object> command,
long secondsTimeout,
String... queueNames) |
<T,R> RFuture<Collection<R>> |
readAllAsync(Codec codec,
RedisCommand<T> command,
Object... params) |
<T,R> RFuture<Collection<R>> |
readAllAsync(Collection<R> results,
Codec codec,
RedisCommand<T> command,
Object... params) |
<T,R> RFuture<Collection<R>> |
readAllAsync(RedisCommand<T> command,
Object... params) |
<R,T> RFuture<R> |
readAllAsync(RedisCommand<T> command,
SlotCallback<T,R> callback,
Object... params) |
<T,R> RFuture<R> |
readAsync(byte[] key,
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> |
readAsync(RedisClient client,
byte[] key,
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(RedisClient client,
String name,
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> |
readBatchedAsync(Codec codec,
RedisCommand<T> command,
SlotCallback<T,R> callback,
String... keys) |
<T,R> RFuture<R> |
readRandomAsync(Codec codec,
RedisCommand<T> command,
Object... params) |
<T,R> RFuture<R> |
readRandomAsync(MasterSlaveEntry entry,
Codec codec,
RedisCommand<T> command,
Object... params) |
void |
syncSubscription(RFuture<?> future) |
void |
syncSubscriptionInterrupted(RFuture<?> future) |
<R,T> RFuture<R> |
writeAllAsync(Codec codec,
RedisCommand<T> command,
SlotCallback<T,R> callback,
Object... params) |
<T> RFuture<Void> |
writeAllAsync(RedisCommand<T> command,
Object... params) |
<R,T> RFuture<R> |
writeAllAsync(RedisCommand<T> command,
SlotCallback<T,R> callback,
Object... params) |
<T,R> RFuture<R> |
writeAsync(byte[] key,
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> |
writeAsync(RedisClient client,
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> |
writeBatchedAsync(Codec codec,
RedisCommand<T> command,
SlotCallback<T,R> callback,
String... keys) |
public CommandAsyncService(ConnectionManager connectionManager, RedissonObjectBuilder objectBuilder, RedissonObjectBuilder.ReferenceType referenceType)
public ConnectionManager getConnectionManager()
getConnectionManager in interface CommandAsyncExecutorpublic void syncSubscription(RFuture<?> future)
syncSubscription in interface CommandAsyncExecutorpublic void syncSubscriptionInterrupted(RFuture<?> future) throws InterruptedException
syncSubscriptionInterrupted in interface CommandAsyncExecutorInterruptedExceptionpublic <V> V get(RFuture<V> future)
get in interface CommandAsyncExecutorpublic <V> V getInterrupted(RFuture<V> future) throws InterruptedException
getInterrupted in interface CommandAsyncExecutorInterruptedExceptionprotected <R> RPromise<R> createPromise()
public <T,R> RFuture<R> readAsync(RedisClient client, MasterSlaveEntry entry, Codec codec, RedisCommand<T> command, Object... params)
readAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<R> readAsync(RedisClient client, String name, Codec codec, RedisCommand<T> command, Object... params)
readAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<R> readAsync(RedisClient client, byte[] key, Codec codec, RedisCommand<T> command, Object... params)
readAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<R> readAsync(RedisClient client, Codec codec, RedisCommand<T> command, Object... params)
readAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<Collection<R>> readAllAsync(Codec codec, RedisCommand<T> command, Object... params)
readAllAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<Collection<R>> readAllAsync(RedisCommand<T> command, Object... params)
readAllAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<Collection<R>> readAllAsync(Collection<R> results, Codec codec, RedisCommand<T> command, Object... params)
readAllAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<R> readRandomAsync(Codec codec, RedisCommand<T> command, Object... params)
readRandomAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<R> readRandomAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> command, Object... params)
readRandomAsync in interface CommandAsyncExecutorpublic <T> RFuture<Void> writeAllAsync(RedisCommand<T> command, Object... params)
writeAllAsync in interface CommandAsyncExecutorpublic <R,T> RFuture<R> writeAllAsync(RedisCommand<T> command, SlotCallback<T,R> callback, Object... params)
writeAllAsync in interface CommandAsyncExecutorpublic <R,T> RFuture<R> writeAllAsync(Codec codec, RedisCommand<T> command, SlotCallback<T,R> callback, Object... params)
writeAllAsync in interface CommandAsyncExecutorpublic <R,T> RFuture<R> readAllAsync(RedisCommand<T> command, SlotCallback<T,R> callback, Object... params)
readAllAsync in interface CommandAsyncExecutorpublic <V> RedisException convertException(RFuture<V> future)
convertException in interface CommandAsyncExecutorpublic <T,R> RFuture<R> readAsync(String key, Codec codec, RedisCommand<T> command, Object... params)
readAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<R> readAsync(byte[] key, Codec codec, RedisCommand<T> command, Object... params)
readAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<R> readAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> command, Object... params)
readAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<R> writeAsync(RedisClient client, Codec codec, RedisCommand<T> command, Object... params)
writeAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<R> writeAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> command, Object... params)
writeAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<R> readAsync(String key, RedisCommand<T> command, Object... params)
readAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<R> evalReadAsync(String key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params)
evalReadAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<R> evalReadAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params)
evalReadAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<R> evalReadAsync(RedisClient client, String name, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params)
evalReadAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<R> evalWriteAsync(String key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params)
evalWriteAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<R> evalWriteAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params)
evalWriteAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<R> evalWriteAllAsync(RedisCommand<T> command, SlotCallback<T,R> callback, String script, List<Object> keys, Object... params)
evalWriteAllAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<R> evalAllAsync(boolean readOnlyMode, RedisCommand<T> command, SlotCallback<T,R> callback, String script, List<Object> keys, Object... params)
protected boolean isEvalCacheActive()
public <T,R> RFuture<R> writeAsync(String key, RedisCommand<T> command, Object... params)
writeAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<R> writeAsync(String key, Codec codec, RedisCommand<T> command, Object... params)
writeAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<R> writeAsync(byte[] key, Codec codec, RedisCommand<T> command, Object... params)
writeAsync in interface CommandAsyncExecutorpublic <V,R> void async(boolean readOnlyMode,
NodeSource source,
Codec codec,
RedisCommand<V> command,
Object[] params,
RPromise<R> mainPromise,
boolean ignoreRedirect)
public <T,R> RFuture<R> readBatchedAsync(Codec codec, RedisCommand<T> command, SlotCallback<T,R> callback, String... keys)
readBatchedAsync in interface CommandAsyncExecutorpublic <T,R> RFuture<R> writeBatchedAsync(Codec codec, RedisCommand<T> command, SlotCallback<T,R> callback, String... keys)
writeBatchedAsync in interface CommandAsyncExecutorpublic RedissonObjectBuilder getObjectBuilder()
getObjectBuilder in interface CommandAsyncExecutorpublic io.netty.buffer.ByteBuf encode(Codec codec, Object value)
encode in interface CommandAsyncExecutorpublic io.netty.buffer.ByteBuf encodeMapKey(Codec codec, Object value)
encodeMapKey in interface CommandAsyncExecutorpublic io.netty.buffer.ByteBuf encodeMapValue(Codec codec, Object value)
encodeMapValue in interface CommandAsyncExecutorpublic <V> RFuture<V> pollFromAnyAsync(String name, Codec codec, RedisCommand<Object> command, long secondsTimeout, String... queueNames)
pollFromAnyAsync in interface CommandAsyncExecutorCopyright © 2014–2021 Redisson. All rights reserved.