@ChannelHandler.Sharable
public class RedisAsyncConnection<K,V>
extends io.netty.channel.ChannelInboundHandlerAdapter
RedisAsyncConnection
provided they avoid blocking and transactional
operations such as blpop(long, K...)
and multi()
/exec()
.
A ConnectionWatchdog
monitors each connection and reconnects
automatically until close()
is called. All pending commands will be
(re)sent after successful reconnection.Modifier and Type | Field and Description |
---|---|
protected io.netty.channel.Channel |
channel |
protected RedisCodec<K,V> |
codec |
protected MultiOutput<K,V> |
multi |
protected BlockingQueue<Command<K,V,?>> |
queue |
protected long |
timeout |
protected TimeUnit |
unit |
Constructor and Description |
---|
RedisAsyncConnection(RedisClient redisClient,
BlockingQueue<Command<K,V,?>> queue,
RedisCodec<K,V> codec,
long timeout,
TimeUnit unit,
io.netty.channel.EventLoopGroup eventLoopGroup)
Initialize a new connection.
|
Modifier and Type | Method and Description |
---|---|
io.netty.util.concurrent.Future<Long> |
append(K key,
V value) |
String |
auth(String password) |
<T> T |
await(io.netty.util.concurrent.Future<T> cmd,
long timeout,
TimeUnit unit) |
boolean |
awaitAll(io.netty.util.concurrent.Future<?>... futures)
Wait until commands are complete or the connection timeout is reached.
|
boolean |
awaitAll(long timeout,
TimeUnit unit,
io.netty.util.concurrent.Future<?>... futures)
Wait until futures are complete or the supplied timeout is reached.
|
io.netty.util.concurrent.Future<String> |
bgrewriteaof() |
io.netty.util.concurrent.Future<String> |
bgsave() |
io.netty.util.concurrent.Future<Long> |
bitcount(K key) |
io.netty.util.concurrent.Future<Long> |
bitcount(K key,
long start,
long end) |
io.netty.util.concurrent.Future<Long> |
bitopAnd(K destination,
K... keys) |
io.netty.util.concurrent.Future<Long> |
bitopNot(K destination,
K source) |
io.netty.util.concurrent.Future<Long> |
bitopOr(K destination,
K... keys) |
io.netty.util.concurrent.Future<Long> |
bitopXor(K destination,
K... keys) |
io.netty.util.concurrent.Future<KeyValue<K,V>> |
blpop(long timeout,
K... keys) |
io.netty.util.concurrent.Future<KeyValue<K,V>> |
brpop(long timeout,
K... keys) |
io.netty.util.concurrent.Future<V> |
brpoplpush(long timeout,
K source,
K destination) |
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
io.netty.util.concurrent.Future<K> |
clientGetname() |
io.netty.util.concurrent.Future<String> |
clientKill(String addr) |
io.netty.util.concurrent.Future<String> |
clientList() |
io.netty.util.concurrent.Future<String> |
clientSetname(K name) |
void |
close()
Close the connection.
|
io.netty.util.concurrent.Future<List<String>> |
configGet(String parameter) |
io.netty.util.concurrent.Future<String> |
configResetstat() |
io.netty.util.concurrent.Future<String> |
configSet(String parameter,
String value) |
io.netty.util.concurrent.Future<Long> |
dbsize() |
io.netty.util.concurrent.Future<String> |
debugObject(K key) |
io.netty.util.concurrent.Future<Long> |
decr(K key) |
io.netty.util.concurrent.Future<Long> |
decrby(K key,
long amount) |
io.netty.util.concurrent.Future<Long> |
del(K... keys) |
String |
digest(V script) |
io.netty.util.concurrent.Future<String> |
discard() |
<T> io.netty.util.concurrent.Future<T> |
dispatch(CommandType type,
CommandOutput<K,V,T> output) |
<T> io.netty.util.concurrent.Future<T> |
dispatch(CommandType type,
CommandOutput<K,V,T> output,
CommandArgs<K,V> args) |
<T> io.netty.util.concurrent.Future<T> |
dispatch(CommandType type,
CommandOutput<K,V,T> output,
K key) |
<T> io.netty.util.concurrent.Future<T> |
dispatch(CommandType type,
CommandOutput<K,V,T> output,
K key,
V value) |
<T> io.netty.util.concurrent.Future<T> |
dispatch(CommandType type,
CommandOutput<K,V,T> output,
K key,
V[] values) |
io.netty.util.concurrent.Future<byte[]> |
dump(K key) |
io.netty.util.concurrent.Future<V> |
echo(V msg) |
<T> io.netty.util.concurrent.Future<T> |
eval(V script,
ScriptOutputType type,
K[] keys,
V... values) |
<T> io.netty.util.concurrent.Future<T> |
evalsha(String digest,
ScriptOutputType type,
K[] keys,
V... values) |
io.netty.util.concurrent.Future<List<Object>> |
exec() |
io.netty.util.concurrent.Future<Boolean> |
exists(K key) |
io.netty.util.concurrent.Future<Boolean> |
expire(K key,
long seconds) |
io.netty.util.concurrent.Future<Boolean> |
expireat(K key,
Date timestamp) |
io.netty.util.concurrent.Future<Boolean> |
expireat(K key,
long timestamp) |
io.netty.util.concurrent.Future<String> |
flushall() |
io.netty.util.concurrent.Future<String> |
flushdb() |
io.netty.util.concurrent.Future<V> |
get(K key) |
io.netty.util.concurrent.Future<Long> |
getbit(K key,
long offset) |
io.netty.util.concurrent.Future<List<V>> |
getMasterAddrByKey(K name) |
io.netty.util.concurrent.Future<V> |
getrange(K key,
long start,
long end) |
RedisClient |
getRedisClient() |
io.netty.util.concurrent.Future<V> |
getset(K key,
V value) |
io.netty.util.concurrent.Future<Long> |
hdel(K key,
K... fields) |
io.netty.util.concurrent.Future<Boolean> |
hexists(K key,
K field) |
io.netty.util.concurrent.Future<V> |
hget(K key,
K field) |
io.netty.util.concurrent.Future<Map<K,V>> |
hgetall(K key) |
io.netty.util.concurrent.Future<Long> |
hincrby(K key,
K field,
long amount) |
io.netty.util.concurrent.Future<Double> |
hincrbyfloat(K key,
K field,
double amount) |
io.netty.util.concurrent.Future<Set<K>> |
hkeys(K key) |
io.netty.util.concurrent.Future<Long> |
hlen(K key) |
io.netty.util.concurrent.Future<List<V>> |
hmget(K key,
K... fields) |
io.netty.util.concurrent.Future<String> |
hmset(K key,
Map<K,V> map) |
io.netty.util.concurrent.Future<Boolean> |
hset(K key,
K field,
V value) |
io.netty.util.concurrent.Future<Boolean> |
hsetnx(K key,
K field,
V value) |
io.netty.util.concurrent.Future<List<V>> |
hvals(K key) |
io.netty.util.concurrent.Future<Long> |
incr(K key) |
io.netty.util.concurrent.Future<Long> |
incrby(K key,
long amount) |
io.netty.util.concurrent.Future<Double> |
incrbyfloat(K key,
double amount) |
io.netty.util.concurrent.Future<String> |
info() |
io.netty.util.concurrent.Future<String> |
info(String section) |
boolean |
isMultiMode() |
io.netty.util.concurrent.Future<List<K>> |
keys(K pattern) |
io.netty.util.concurrent.Future<Date> |
lastsave() |
io.netty.util.concurrent.Future<V> |
lindex(K key,
long index) |
io.netty.util.concurrent.Future<Long> |
linsert(K key,
boolean before,
V pivot,
V value) |
io.netty.util.concurrent.Future<Long> |
llen(K key) |
io.netty.util.concurrent.Future<V> |
lpop(K key) |
io.netty.util.concurrent.Future<Long> |
lpush(K key,
V... values) |
io.netty.util.concurrent.Future<Long> |
lpushx(K key,
V value) |
io.netty.util.concurrent.Future<List<V>> |
lrange(K key,
long start,
long stop) |
io.netty.util.concurrent.Future<Long> |
lrem(K key,
long count,
V value) |
io.netty.util.concurrent.Future<String> |
lset(K key,
long index,
V value) |
io.netty.util.concurrent.Future<String> |
ltrim(K key,
long start,
long stop) |
io.netty.util.concurrent.Future<List<V>> |
mget(K... keys) |
io.netty.util.concurrent.Future<String> |
migrate(String host,
int port,
K key,
int db,
long timeout) |
io.netty.util.concurrent.Future<Boolean> |
move(K key,
int db) |
io.netty.util.concurrent.Future<String> |
mset(Map<K,V> map) |
io.netty.util.concurrent.Future<Boolean> |
msetnx(Map<K,V> map) |
io.netty.util.concurrent.Future<String> |
multi() |
protected <K,V,T> CommandOutput<K,V,T> |
newScriptOutput(RedisCodec<K,V> codec,
ScriptOutputType type) |
io.netty.util.concurrent.Future<String> |
objectEncoding(K key) |
io.netty.util.concurrent.Future<Long> |
objectIdletime(K key) |
io.netty.util.concurrent.Future<Long> |
objectRefcount(K key) |
io.netty.util.concurrent.Future<Boolean> |
persist(K key) |
io.netty.util.concurrent.Future<Boolean> |
pexpire(K key,
long milliseconds) |
io.netty.util.concurrent.Future<Boolean> |
pexpireat(K key,
Date timestamp) |
io.netty.util.concurrent.Future<Boolean> |
pexpireat(K key,
long timestamp) |
io.netty.util.concurrent.Future<Long> |
pfadd(K key,
V... values) |
io.netty.util.concurrent.Future<Long> |
pfcount(K key,
K... keys) |
io.netty.util.concurrent.Future<Long> |
pfmerge(K destkey,
K... sourceKeys) |
io.netty.util.concurrent.Future<String> |
ping() |
io.netty.util.concurrent.Future<Long> |
pttl(K key) |
io.netty.util.concurrent.Future<Long> |
publish(K channel,
V message) |
io.netty.util.concurrent.Future<String> |
quit() |
io.netty.util.concurrent.Future<V> |
randomkey() |
io.netty.util.concurrent.Future<String> |
rename(K key,
K newKey) |
io.netty.util.concurrent.Future<Boolean> |
renamenx(K key,
K newKey) |
io.netty.util.concurrent.Future<String> |
restore(K key,
long ttl,
byte[] value) |
io.netty.util.concurrent.Future<V> |
rpop(K key) |
io.netty.util.concurrent.Future<V> |
rpoplpush(K source,
K destination) |
io.netty.util.concurrent.Future<Long> |
rpush(K key,
V... values) |
io.netty.util.concurrent.Future<Long> |
rpushx(K key,
V value) |
io.netty.util.concurrent.Future<Long> |
sadd(K key,
V... members) |
io.netty.util.concurrent.Future<String> |
save() |
io.netty.util.concurrent.Future<Long> |
scard(K key) |
io.netty.util.concurrent.Future<List<Boolean>> |
scriptExists(String... digests) |
io.netty.util.concurrent.Future<String> |
scriptFlush() |
io.netty.util.concurrent.Future<String> |
scriptKill() |
io.netty.util.concurrent.Future<String> |
scriptLoad(V script) |
io.netty.util.concurrent.Future<Set<V>> |
sdiff(K... keys) |
io.netty.util.concurrent.Future<Long> |
sdiffstore(K destination,
K... keys) |
String |
select(int db) |
io.netty.util.concurrent.Future<String> |
set(K key,
V value) |
io.netty.util.concurrent.Future<Long> |
setbit(K key,
long offset,
int value) |
io.netty.util.concurrent.Future<String> |
setex(K key,
long seconds,
V value) |
io.netty.util.concurrent.Future<Boolean> |
setnx(K key,
V value) |
io.netty.util.concurrent.Future<Long> |
setrange(K key,
long offset,
V value) |
void |
setTimeout(long timeout,
TimeUnit unit)
Set the command timeout for this connection.
|
void |
shutdown()
Deprecated.
|
void |
shutdown(boolean save) |
io.netty.util.concurrent.Future<Set<V>> |
sinter(K... keys) |
io.netty.util.concurrent.Future<Long> |
sinterstore(K destination,
K... keys) |
io.netty.util.concurrent.Future<Boolean> |
sismember(K key,
V member) |
io.netty.util.concurrent.Future<String> |
slaveof(String host,
int port) |
io.netty.util.concurrent.Future<String> |
slaveofNoOne() |
io.netty.util.concurrent.Future<List<Map<K,V>>> |
slaves(K key) |
io.netty.util.concurrent.Future<List<Object>> |
slowlogGet() |
io.netty.util.concurrent.Future<List<Object>> |
slowlogGet(int count) |
io.netty.util.concurrent.Future<Long> |
slowlogLen() |
io.netty.util.concurrent.Future<String> |
slowlogReset() |
io.netty.util.concurrent.Future<Set<V>> |
smembers(K key) |
io.netty.util.concurrent.Future<Boolean> |
smove(K source,
K destination,
V member) |
io.netty.util.concurrent.Future<List<V>> |
sort(K key) |
io.netty.util.concurrent.Future<List<V>> |
sort(K key,
SortArgs sortArgs) |
io.netty.util.concurrent.Future<Long> |
sortStore(K key,
SortArgs sortArgs,
K destination) |
io.netty.util.concurrent.Future<V> |
spop(K key) |
io.netty.util.concurrent.Future<V> |
srandmember(K key) |
io.netty.util.concurrent.Future<Set<V>> |
srandmember(K key,
long count) |
io.netty.util.concurrent.Future<Long> |
srem(K key,
V... members) |
io.netty.util.concurrent.Future<ScanResult<V>> |
sscan(K key,
long startValue) |
String |
string(double n) |
io.netty.util.concurrent.Future<Long> |
strlen(K key) |
io.netty.util.concurrent.Future<Set<V>> |
sunion(K... keys) |
io.netty.util.concurrent.Future<Long> |
sunionstore(K destination,
K... keys) |
io.netty.util.concurrent.Future<String> |
sync() |
io.netty.util.concurrent.Future<Long> |
ttl(K key) |
io.netty.util.concurrent.Future<String> |
type(K key) |
io.netty.util.concurrent.Future<String> |
unwatch() |
io.netty.util.concurrent.Future<String> |
watch(K... keys) |
io.netty.util.concurrent.Future<Long> |
zadd(K key,
double score,
V member) |
io.netty.util.concurrent.Future<Long> |
zadd(K key,
Object... scoresAndValues) |
io.netty.util.concurrent.Future<Long> |
zcard(K key) |
io.netty.util.concurrent.Future<Long> |
zcount(K key,
double min,
double max) |
io.netty.util.concurrent.Future<Long> |
zcount(K key,
String min,
String max) |
io.netty.util.concurrent.Future<Double> |
zincrby(K key,
double amount,
K member) |
io.netty.util.concurrent.Future<Long> |
zinterstore(K destination,
K... keys) |
io.netty.util.concurrent.Future<Long> |
zinterstore(K destination,
ZStoreArgs storeArgs,
K... keys) |
io.netty.util.concurrent.Future<List<V>> |
zrange(K key,
long start,
long stop) |
io.netty.util.concurrent.Future<List<V>> |
zrangebyscore(K key,
double min,
double max) |
io.netty.util.concurrent.Future<List<V>> |
zrangebyscore(K key,
double min,
double max,
long offset,
long count) |
io.netty.util.concurrent.Future<List<V>> |
zrangebyscore(K key,
String min,
String max) |
io.netty.util.concurrent.Future<List<V>> |
zrangebyscore(K key,
String min,
String max,
long offset,
long count) |
io.netty.util.concurrent.Future<List<ScoredValue<V>>> |
zrangebyscoreWithScores(K key,
double min,
double max) |
io.netty.util.concurrent.Future<List<ScoredValue<V>>> |
zrangebyscoreWithScores(K key,
double min,
double max,
long offset,
long count) |
io.netty.util.concurrent.Future<List<ScoredValue<V>>> |
zrangebyscoreWithScores(K key,
String min,
String max) |
io.netty.util.concurrent.Future<List<ScoredValue<V>>> |
zrangebyscoreWithScores(K key,
String min,
String max,
long offset,
long count) |
io.netty.util.concurrent.Future<List<ScoredValue<V>>> |
zrangeWithScores(K key,
long start,
long stop) |
io.netty.util.concurrent.Future<Long> |
zrank(K key,
V member) |
io.netty.util.concurrent.Future<Long> |
zrem(K key,
V... members) |
io.netty.util.concurrent.Future<Long> |
zremrangebyrank(K key,
long start,
long stop) |
io.netty.util.concurrent.Future<Long> |
zremrangebyscore(K key,
double min,
double max) |
io.netty.util.concurrent.Future<Long> |
zremrangebyscore(K key,
String min,
String max) |
io.netty.util.concurrent.Future<List<V>> |
zrevrange(K key,
long start,
long stop) |
io.netty.util.concurrent.Future<List<V>> |
zrevrangebyscore(K key,
double max,
double min) |
io.netty.util.concurrent.Future<List<V>> |
zrevrangebyscore(K key,
double max,
double min,
long offset,
long count) |
io.netty.util.concurrent.Future<List<V>> |
zrevrangebyscore(K key,
String max,
String min) |
io.netty.util.concurrent.Future<List<V>> |
zrevrangebyscore(K key,
String max,
String min,
long offset,
long count) |
io.netty.util.concurrent.Future<List<ScoredValue<V>>> |
zrevrangebyscoreWithScores(K key,
double max,
double min) |
io.netty.util.concurrent.Future<List<ScoredValue<V>>> |
zrevrangebyscoreWithScores(K key,
double max,
double min,
long offset,
long count) |
io.netty.util.concurrent.Future<List<ScoredValue<V>>> |
zrevrangebyscoreWithScores(K key,
String max,
String min) |
io.netty.util.concurrent.Future<List<ScoredValue<V>>> |
zrevrangebyscoreWithScores(K key,
String max,
String min,
long offset,
long count) |
io.netty.util.concurrent.Future<List<ScoredValue<V>>> |
zrevrangeWithScores(K key,
long start,
long stop) |
io.netty.util.concurrent.Future<Long> |
zrevrank(K key,
V member) |
io.netty.util.concurrent.Future<ScanResult<V>> |
zscan(K key,
long startValue) |
io.netty.util.concurrent.Future<Double> |
zscore(K key,
V member) |
io.netty.util.concurrent.Future<Long> |
zunionstore(K destination,
K... keys) |
io.netty.util.concurrent.Future<Long> |
zunionstore(K destination,
ZStoreArgs storeArgs,
K... keys) |
channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
handlerAdded, handlerRemoved, isSharable
protected BlockingQueue<Command<K,V,?>> queue
protected RedisCodec<K,V> codec
protected io.netty.channel.Channel channel
protected long timeout
protected TimeUnit unit
protected MultiOutput<K,V> multi
public RedisAsyncConnection(RedisClient redisClient, BlockingQueue<Command<K,V,?>> queue, RedisCodec<K,V> codec, long timeout, TimeUnit unit, io.netty.channel.EventLoopGroup eventLoopGroup)
queue
- Command queue.codec
- Codec used to encode/decode keys and values.timeout
- Maximum time to wait for a response.unit
- Unit of time for the timeout.eventLoopGroup
- public void setTimeout(long timeout, TimeUnit unit)
timeout
- Command timeout.unit
- Unit of time for the timeout.public io.netty.util.concurrent.Future<String> bgrewriteaof()
public io.netty.util.concurrent.Future<String> bgsave()
public io.netty.util.concurrent.Future<V> brpoplpush(long timeout, K source, K destination)
public io.netty.util.concurrent.Future<K> clientGetname()
public io.netty.util.concurrent.Future<String> clientList()
public io.netty.util.concurrent.Future<String> configResetstat()
public io.netty.util.concurrent.Future<Long> dbsize()
public io.netty.util.concurrent.Future<String> discard()
public io.netty.util.concurrent.Future<byte[]> dump(K key)
public <T> io.netty.util.concurrent.Future<T> eval(V script, ScriptOutputType type, K[] keys, V... values)
public <T> io.netty.util.concurrent.Future<T> evalsha(String digest, ScriptOutputType type, K[] keys, V... values)
public io.netty.util.concurrent.Future<String> flushall()
public io.netty.util.concurrent.Future<String> flushdb()
public io.netty.util.concurrent.Future<Double> hincrbyfloat(K key, K field, double amount)
public io.netty.util.concurrent.Future<String> info()
public io.netty.util.concurrent.Future<Date> lastsave()
public io.netty.util.concurrent.Future<Long> linsert(K key, boolean before, V pivot, V value)
public io.netty.util.concurrent.Future<String> migrate(String host, int port, K key, int db, long timeout)
public boolean isMultiMode()
public io.netty.util.concurrent.Future<String> multi()
public io.netty.util.concurrent.Future<String> ping()
public io.netty.util.concurrent.Future<String> quit()
public io.netty.util.concurrent.Future<V> randomkey()
public io.netty.util.concurrent.Future<String> save()
public io.netty.util.concurrent.Future<String> scriptFlush()
public io.netty.util.concurrent.Future<String> scriptKill()
public String select(int db)
@Deprecated public void shutdown()
public void shutdown(boolean save)
public io.netty.util.concurrent.Future<String> slaveofNoOne()
public io.netty.util.concurrent.Future<Long> slowlogLen()
public io.netty.util.concurrent.Future<String> slowlogReset()
public io.netty.util.concurrent.Future<Long> sortStore(K key, SortArgs sortArgs, K destination)
public io.netty.util.concurrent.Future<String> sync()
public io.netty.util.concurrent.Future<String> unwatch()
public io.netty.util.concurrent.Future<Long> zinterstore(K destination, ZStoreArgs storeArgs, K... keys)
public io.netty.util.concurrent.Future<List<ScoredValue<V>>> zrangeWithScores(K key, long start, long stop)
public io.netty.util.concurrent.Future<List<V>> zrangebyscore(K key, double min, double max)
public io.netty.util.concurrent.Future<List<V>> zrangebyscore(K key, String min, String max)
public io.netty.util.concurrent.Future<List<V>> zrangebyscore(K key, double min, double max, long offset, long count)
public io.netty.util.concurrent.Future<List<V>> zrangebyscore(K key, String min, String max, long offset, long count)
public io.netty.util.concurrent.Future<List<ScoredValue<V>>> zrangebyscoreWithScores(K key, double min, double max)
public io.netty.util.concurrent.Future<List<ScoredValue<V>>> zrangebyscoreWithScores(K key, String min, String max)
public io.netty.util.concurrent.Future<List<ScoredValue<V>>> zrangebyscoreWithScores(K key, double min, double max, long offset, long count)
public io.netty.util.concurrent.Future<List<ScoredValue<V>>> zrangebyscoreWithScores(K key, String min, String max, long offset, long count)
public io.netty.util.concurrent.Future<Long> zremrangebyrank(K key, long start, long stop)
public io.netty.util.concurrent.Future<Long> zremrangebyscore(K key, double min, double max)
public io.netty.util.concurrent.Future<Long> zremrangebyscore(K key, String min, String max)
public io.netty.util.concurrent.Future<List<ScoredValue<V>>> zrevrangeWithScores(K key, long start, long stop)
public io.netty.util.concurrent.Future<List<V>> zrevrangebyscore(K key, double max, double min)
public io.netty.util.concurrent.Future<List<V>> zrevrangebyscore(K key, String max, String min)
public io.netty.util.concurrent.Future<List<V>> zrevrangebyscore(K key, double max, double min, long offset, long count)
public io.netty.util.concurrent.Future<List<V>> zrevrangebyscore(K key, String max, String min, long offset, long count)
public io.netty.util.concurrent.Future<List<ScoredValue<V>>> zrevrangebyscoreWithScores(K key, double max, double min)
public io.netty.util.concurrent.Future<List<ScoredValue<V>>> zrevrangebyscoreWithScores(K key, String max, String min)
public io.netty.util.concurrent.Future<List<ScoredValue<V>>> zrevrangebyscoreWithScores(K key, double max, double min, long offset, long count)
public io.netty.util.concurrent.Future<List<ScoredValue<V>>> zrevrangebyscoreWithScores(K key, String max, String min, long offset, long count)
public io.netty.util.concurrent.Future<Long> zunionstore(K destination, ZStoreArgs storeArgs, K... keys)
public io.netty.util.concurrent.Future<ScanResult<V>> sscan(K key, long startValue)
public io.netty.util.concurrent.Future<ScanResult<V>> zscan(K key, long startValue)
public boolean awaitAll(io.netty.util.concurrent.Future<?>... futures)
futures
- Futures to wait for.public boolean awaitAll(long timeout, TimeUnit unit, io.netty.util.concurrent.Future<?>... futures)
timeout
- Maximum time to wait for futures to complete.unit
- Unit of time for the timeout.futures
- Futures to wait for.public void close()
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelActive
in interface io.netty.channel.ChannelInboundHandler
channelActive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelInactive
in interface io.netty.channel.ChannelInboundHandler
channelInactive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public <T> io.netty.util.concurrent.Future<T> dispatch(CommandType type, CommandOutput<K,V,T> output)
public <T> io.netty.util.concurrent.Future<T> dispatch(CommandType type, CommandOutput<K,V,T> output, K key)
public <T> io.netty.util.concurrent.Future<T> dispatch(CommandType type, CommandOutput<K,V,T> output, K key, V value)
public <T> io.netty.util.concurrent.Future<T> dispatch(CommandType type, CommandOutput<K,V,T> output, K key, V[] values)
public <T> io.netty.util.concurrent.Future<T> dispatch(CommandType type, CommandOutput<K,V,T> output, CommandArgs<K,V> args)
public <T> T await(io.netty.util.concurrent.Future<T> cmd, long timeout, TimeUnit unit)
public RedisClient getRedisClient()
protected <K,V,T> CommandOutput<K,V,T> newScriptOutput(RedisCodec<K,V> codec, ScriptOutputType type)
public String string(double n)
Copyright © 2014. All rights reserved.