public class CommandAsyncService extends Object implements CommandAsyncExecutor
Constructor and Description |
---|
CommandAsyncService(ConnectionManager connectionManager) |
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 boolean isRedissonReferenceSupportEnabled()
isRedissonReferenceSupportEnabled
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 <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.