public class CommandAsyncService extends Object implements CommandAsyncExecutor
Modifier and Type | Field and Description |
---|---|
protected RedissonObjectBuilder |
objectBuilder |
Constructor and Description |
---|
CommandAsyncService(ConnectionManager connectionManager) |
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() |
CommandAsyncExecutor |
enableRedissonReferenceSupport(RedissonClient redisson) |
CommandAsyncExecutor |
enableRedissonReferenceSupport(RedissonReactiveClient redissonReactive) |
CommandAsyncExecutor |
enableRedissonReferenceSupport(RedissonRxClient redissonRx) |
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) |
protected RedissonObjectBuilder objectBuilder
public CommandAsyncService(ConnectionManager connectionManager)
public ConnectionManager getConnectionManager()
getConnectionManager
in interface CommandAsyncExecutor
public CommandAsyncExecutor enableRedissonReferenceSupport(RedissonClient redisson)
enableRedissonReferenceSupport
in interface CommandAsyncExecutor
public CommandAsyncExecutor enableRedissonReferenceSupport(RedissonReactiveClient redissonReactive)
enableRedissonReferenceSupport
in interface CommandAsyncExecutor
public CommandAsyncExecutor enableRedissonReferenceSupport(RedissonRxClient redissonRx)
enableRedissonReferenceSupport
in interface CommandAsyncExecutor
public void syncSubscription(RFuture<?> future)
syncSubscription
in interface CommandAsyncExecutor
public void syncSubscriptionInterrupted(RFuture<?> future) throws InterruptedException
syncSubscriptionInterrupted
in interface CommandAsyncExecutor
InterruptedException
public <V> V get(RFuture<V> future)
get
in interface CommandAsyncExecutor
public <V> V getInterrupted(RFuture<V> future) throws InterruptedException
getInterrupted
in interface CommandAsyncExecutor
InterruptedException
protected <R> RPromise<R> createPromise()
public <T,R> RFuture<R> readAsync(RedisClient client, MasterSlaveEntry entry, Codec codec, RedisCommand<T> command, Object... params)
readAsync
in interface CommandAsyncExecutor
public <T,R> RFuture<R> readAsync(RedisClient client, String name, Codec codec, RedisCommand<T> command, Object... params)
readAsync
in interface CommandAsyncExecutor
public <T,R> RFuture<R> readAsync(RedisClient client, byte[] key, Codec codec, RedisCommand<T> command, Object... params)
readAsync
in interface CommandAsyncExecutor
public <T,R> RFuture<R> readAsync(RedisClient client, Codec codec, RedisCommand<T> command, Object... params)
readAsync
in interface CommandAsyncExecutor
public <T,R> RFuture<Collection<R>> readAllAsync(Codec codec, RedisCommand<T> command, Object... params)
readAllAsync
in interface CommandAsyncExecutor
public <T,R> RFuture<Collection<R>> readAllAsync(RedisCommand<T> command, Object... params)
readAllAsync
in interface CommandAsyncExecutor
public <T,R> RFuture<Collection<R>> readAllAsync(Collection<R> results, Codec codec, RedisCommand<T> command, Object... params)
readAllAsync
in interface CommandAsyncExecutor
public <T,R> RFuture<R> readRandomAsync(Codec codec, RedisCommand<T> command, Object... params)
readRandomAsync
in interface CommandAsyncExecutor
public <T,R> RFuture<R> readRandomAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> command, Object... params)
readRandomAsync
in interface CommandAsyncExecutor
public <T> RFuture<Void> writeAllAsync(RedisCommand<T> command, Object... params)
writeAllAsync
in interface CommandAsyncExecutor
public <R,T> RFuture<R> writeAllAsync(RedisCommand<T> command, SlotCallback<T,R> callback, Object... params)
writeAllAsync
in interface CommandAsyncExecutor
public <R,T> RFuture<R> writeAllAsync(Codec codec, RedisCommand<T> command, SlotCallback<T,R> callback, Object... params)
writeAllAsync
in interface CommandAsyncExecutor
public <R,T> RFuture<R> readAllAsync(RedisCommand<T> command, SlotCallback<T,R> callback, Object... params)
readAllAsync
in interface CommandAsyncExecutor
public <V> RedisException convertException(RFuture<V> future)
convertException
in interface CommandAsyncExecutor
public <T,R> RFuture<R> readAsync(String key, Codec codec, RedisCommand<T> command, Object... params)
readAsync
in interface CommandAsyncExecutor
public <T,R> RFuture<R> readAsync(byte[] key, Codec codec, RedisCommand<T> command, Object... params)
readAsync
in interface CommandAsyncExecutor
public <T,R> RFuture<R> readAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> command, Object... params)
readAsync
in interface CommandAsyncExecutor
public <T,R> RFuture<R> writeAsync(RedisClient client, Codec codec, RedisCommand<T> command, Object... params)
writeAsync
in interface CommandAsyncExecutor
public <T,R> RFuture<R> writeAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> command, Object... params)
writeAsync
in interface CommandAsyncExecutor
public <T,R> RFuture<R> readAsync(String key, RedisCommand<T> command, Object... params)
readAsync
in interface CommandAsyncExecutor
public <T,R> RFuture<R> evalReadAsync(String key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params)
evalReadAsync
in interface CommandAsyncExecutor
public <T,R> RFuture<R> evalReadAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params)
evalReadAsync
in interface CommandAsyncExecutor
public <T,R> RFuture<R> evalReadAsync(RedisClient client, String name, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params)
evalReadAsync
in interface CommandAsyncExecutor
public <T,R> RFuture<R> evalWriteAsync(String key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params)
evalWriteAsync
in interface CommandAsyncExecutor
public <T,R> RFuture<R> evalWriteAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params)
evalWriteAsync
in interface CommandAsyncExecutor
public <T,R> RFuture<R> evalWriteAllAsync(RedisCommand<T> command, SlotCallback<T,R> callback, String script, List<Object> keys, Object... params)
evalWriteAllAsync
in interface CommandAsyncExecutor
public <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 CommandAsyncExecutor
public <T,R> RFuture<R> writeAsync(String key, Codec codec, RedisCommand<T> command, Object... params)
writeAsync
in interface CommandAsyncExecutor
public <T,R> RFuture<R> writeAsync(byte[] key, Codec codec, RedisCommand<T> command, Object... params)
writeAsync
in interface CommandAsyncExecutor
public <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 CommandAsyncExecutor
public <T,R> RFuture<R> writeBatchedAsync(Codec codec, RedisCommand<T> command, SlotCallback<T,R> callback, String... keys)
writeBatchedAsync
in interface CommandAsyncExecutor
public RedissonObjectBuilder getObjectBuilder()
getObjectBuilder
in interface CommandAsyncExecutor
public io.netty.buffer.ByteBuf encode(Codec codec, Object value)
encode
in interface CommandAsyncExecutor
public io.netty.buffer.ByteBuf encodeMapKey(Codec codec, Object value)
encodeMapKey
in interface CommandAsyncExecutor
public io.netty.buffer.ByteBuf encodeMapValue(Codec codec, Object value)
encodeMapValue
in interface CommandAsyncExecutor
public <V> RFuture<V> pollFromAnyAsync(String name, Codec codec, RedisCommand<Object> command, long secondsTimeout, String... queueNames)
pollFromAnyAsync
in interface CommandAsyncExecutor
Copyright © 2014–2020 Redisson. All rights reserved.