public class CommandAsyncService extends Object implements CommandAsyncExecutor
Constructor and Description |
---|
CommandAsyncService(ConnectionManager connectionManager) |
Modifier and Type | Method and Description |
---|---|
<T,R> io.netty.util.concurrent.Future<R> |
allAsync(boolean readOnlyMode,
RedisCommand<T> command,
SlotCallback<T,R> callback,
Object... params) |
protected <V,R> void |
async(boolean readOnlyMode,
NodeSource source,
MultiDecoder<Object> messageDecoder,
Codec codec,
RedisCommand<V> command,
Object[] params,
io.netty.util.concurrent.Promise<R> mainPromise,
int attempt) |
protected <V> RedisException |
convertException(io.netty.util.concurrent.Future<V> future) |
<T,R> io.netty.util.concurrent.Future<R> |
evalAllAsync(boolean readOnlyMode,
RedisCommand<T> command,
SlotCallback<T,R> callback,
String script,
List<Object> keys,
Object... params) |
<T,R> io.netty.util.concurrent.Future<R> |
evalReadAsync(InetSocketAddress client,
String key,
Codec codec,
RedisCommand<T> evalCommandType,
String script,
List<Object> keys,
Object... params) |
<T,R> io.netty.util.concurrent.Future<R> |
evalReadAsync(String key,
Codec codec,
RedisCommand<T> evalCommandType,
String script,
List<Object> keys,
Object... params) |
<T,R> io.netty.util.concurrent.Future<R> |
evalWriteAllAsync(RedisCommand<T> command,
SlotCallback<T,R> callback,
String script,
List<Object> keys,
Object... params) |
<T,R> io.netty.util.concurrent.Future<R> |
evalWriteAsync(String key,
Codec codec,
RedisCommand<T> evalCommandType,
String script,
List<Object> keys,
Object... params) |
<V> V |
get(io.netty.util.concurrent.Future<V> future) |
ConnectionManager |
getConnectionManager() |
<T,R> io.netty.util.concurrent.Future<Collection<R>> |
readAllAsync(RedisCommand<T> command,
Object... params) |
<T,R> io.netty.util.concurrent.Future<R> |
readAsync(InetSocketAddress client,
String key,
Codec codec,
RedisCommand<T> command,
Object... params) |
<T,R> io.netty.util.concurrent.Future<R> |
readAsync(String key,
Codec codec,
RedisCommand<T> command,
Object... params) |
<T,R> io.netty.util.concurrent.Future<R> |
readAsync(String key,
RedisCommand<T> command,
Object... params) |
<T,R> io.netty.util.concurrent.Future<R> |
readRandomAsync(RedisCommand<T> command,
Object... params) |
<T> io.netty.util.concurrent.Future<Void> |
writeAllAsync(RedisCommand<T> command,
Object... params) |
<R,T> io.netty.util.concurrent.Future<R> |
writeAllAsync(RedisCommand<T> command,
SlotCallback<T,R> callback,
Object... params) |
<T,R> io.netty.util.concurrent.Future<R> |
writeAsync(Integer slot,
Codec codec,
RedisCommand<T> command,
Object... params) |
<T,R> io.netty.util.concurrent.Future<R> |
writeAsync(String key,
Codec codec,
RedisCommand<T> command,
Object... params) |
<T,R> io.netty.util.concurrent.Future<R> |
writeAsync(String key,
RedisCommand<T> command,
Object... params) |
public CommandAsyncService(ConnectionManager connectionManager)
public ConnectionManager getConnectionManager()
getConnectionManager
in interface CommandAsyncExecutor
public <V> V get(io.netty.util.concurrent.Future<V> future)
get
in interface CommandAsyncExecutor
public <T,R> io.netty.util.concurrent.Future<R> readAsync(InetSocketAddress client, String key, Codec codec, RedisCommand<T> command, Object... params)
readAsync
in interface CommandAsyncExecutor
public <T,R> io.netty.util.concurrent.Future<Collection<R>> readAllAsync(RedisCommand<T> command, Object... params)
readAllAsync
in interface CommandAsyncExecutor
public <T,R> io.netty.util.concurrent.Future<R> readRandomAsync(RedisCommand<T> command, Object... params)
readRandomAsync
in interface CommandAsyncExecutor
public <T> io.netty.util.concurrent.Future<Void> writeAllAsync(RedisCommand<T> command, Object... params)
writeAllAsync
in interface CommandAsyncExecutor
public <R,T> io.netty.util.concurrent.Future<R> writeAllAsync(RedisCommand<T> command, SlotCallback<T,R> callback, Object... params)
writeAllAsync
in interface CommandAsyncExecutor
public <T,R> io.netty.util.concurrent.Future<R> allAsync(boolean readOnlyMode, RedisCommand<T> command, SlotCallback<T,R> callback, Object... params)
protected <V> RedisException convertException(io.netty.util.concurrent.Future<V> future)
public <T,R> io.netty.util.concurrent.Future<R> readAsync(String key, Codec codec, RedisCommand<T> command, Object... params)
readAsync
in interface CommandAsyncExecutor
public <T,R> io.netty.util.concurrent.Future<R> writeAsync(Integer slot, Codec codec, RedisCommand<T> command, Object... params)
writeAsync
in interface CommandAsyncExecutor
public <T,R> io.netty.util.concurrent.Future<R> readAsync(String key, RedisCommand<T> command, Object... params)
readAsync
in interface CommandAsyncExecutor
public <T,R> io.netty.util.concurrent.Future<R> evalReadAsync(String key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params)
evalReadAsync
in interface CommandAsyncExecutor
public <T,R> io.netty.util.concurrent.Future<R> evalReadAsync(InetSocketAddress client, String key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params)
evalReadAsync
in interface CommandAsyncExecutor
public <T,R> io.netty.util.concurrent.Future<R> evalWriteAsync(String key, Codec codec, RedisCommand<T> evalCommandType, String script, List<Object> keys, Object... params)
evalWriteAsync
in interface CommandAsyncExecutor
public <T,R> io.netty.util.concurrent.Future<R> evalWriteAllAsync(RedisCommand<T> command, SlotCallback<T,R> callback, String script, List<Object> keys, Object... params)
evalWriteAllAsync
in interface CommandAsyncExecutor
public <T,R> io.netty.util.concurrent.Future<R> evalAllAsync(boolean readOnlyMode, RedisCommand<T> command, SlotCallback<T,R> callback, String script, List<Object> keys, Object... params)
public <T,R> io.netty.util.concurrent.Future<R> writeAsync(String key, RedisCommand<T> command, Object... params)
writeAsync
in interface CommandAsyncExecutor
public <T,R> io.netty.util.concurrent.Future<R> writeAsync(String key, Codec codec, RedisCommand<T> command, Object... params)
writeAsync
in interface CommandAsyncExecutor
protected <V,R> void async(boolean readOnlyMode, NodeSource source, MultiDecoder<Object> messageDecoder, Codec codec, RedisCommand<V> command, Object[] params, io.netty.util.concurrent.Promise<R> mainPromise, int attempt)
Copyright © 2014–2015. All rights reserved.