public class CommandAsyncService extends Object implements CommandAsyncExecutor
| Constructor and Description |
|---|
CommandAsyncService(ConnectionManager connectionManager) |
public CommandAsyncService(ConnectionManager connectionManager)
public ConnectionManager getConnectionManager()
getConnectionManager in interface CommandAsyncExecutorpublic CommandAsyncExecutor enableRedissonReferenceSupport(RedissonClient redisson)
enableRedissonReferenceSupport in interface CommandAsyncExecutorpublic CommandAsyncExecutor enableRedissonReferenceSupport(RedissonReactiveClient redissonReactive)
enableRedissonReferenceSupport in interface CommandAsyncExecutorpublic CommandAsyncExecutor enableRedissonReferenceSupport(RedissonRxClient redissonRx)
enableRedissonReferenceSupport in interface CommandAsyncExecutorpublic boolean isRedissonReferenceSupportEnabled()
isRedissonReferenceSupportEnabled 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(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 <V> RFuture<V> pollFromAnyAsync(String name, Codec codec, RedisCommand<Object> command, long secondsTimeout, String... queueNames)
pollFromAnyAsync in interface CommandAsyncExecutorCopyright © 2014–2019 Redisson. All rights reserved.