public class RedisPubSubConnection extends RedisConnection
ASKING, AUTH, BITCOUNT, BITOP, BITPOS, BITS_SIZE, BLPOP_VALUE, BRPOP_VALUE, BRPOPLPUSH, CLIENT_GETNAME, CLIENT_SETNAME, CLUSTER_INFO, CLUSTER_NODES, DBSIZE, DECR, DEL, DEL_BOOL, DEL_OBJECTS, DEL_VOID, EVAL_BOOLEAN, EVAL_BOOLEAN_AMOUNT, EVAL_BOOLEAN_WITH_VALUES, EVAL_INTEGER, EVAL_LIST, EVAL_LONG, EVAL_MAP_VALUE, EVAL_MAP_VALUE_LIST, EVAL_OBJECT, EVAL_SET, EVAL_SSCAN, EVAL_STRING, EVAL_VOID, EXEC, EXISTS, FLUSHALL, FLUSHDB, GEOADD, GEOADD_ENTRIES, GEODIST, GEORADIUS, GEORADIUSBYMEMBER, GET, GET_LONG, GETBIT, GETSET, HDEL, HEXISTS, HGET, HGETALL, HGETALL_ENTRY, HKEYS, HLEN, HLEN_LONG, HMGET, HMSET, HSCAN, HSET, HSETNX, HVALS, INCR, INCRBY, INCRBYFLOAT, INFO_PERSISTENCE, INFO_REPLICATION, KEYS, KEYSLOT, LINDEX, LINSERT, LLEN, LLEN_INT, LPOP, LPUSH, LPUSH_BOOLEAN, LPUSH_VOID, LRANGE, LREM, LREM_SINGLE, LSET, LTRIM, MGET, MIGRATE, MOVE, MSET, MSETNX, MULTI, NOT_EXISTS, PERSIST, PEXPIRE, PEXPIREAT, PFADD, PFCOUNT, PFMERGE, PING, PSUBSCRIBE, PTTL, PUBLISH, PUNSUBSCRIBE, RANDOM_KEY, READONLY, RENAME, RENAMENX, RPOP, RPOPLPUSH, RPUSH, RPUSH_BOOLEAN, SADD, SADD_BOOL, SADD_SINGLE, SCAN, SCARD, SCARD_INT, SCRIPT_EXISTS, SCRIPT_FLUSH, SCRIPT_KILL, SCRIPT_LOAD, SELECT, SENTINEL_GET_MASTER_ADDR_BY_NAME, SENTINEL_SLAVES, SET, SETBIT, SETBIT_VOID, SETEX, SETNX, SETPXNX, SISMEMBER, SMEMBERS, SMOVE, SPOP_SINGLE, SREM, SREM_SINGLE, SSCAN, STRLEN, SUBSCRIBE, SUNION, SUNIONSTORE, SUNIONSTORE_INT, UNSUBSCRIBE, UNWATCH, WATCH, ZADD, ZADD_BOOL, ZADD_BOOL_RAW, ZADD_NX_BOOL, ZADD_RAW, ZCARD, ZCARD_INT, ZINCRBY, ZLEXCOUNT, ZRANGE, ZRANGE_ENTRY, ZRANGE_SINGLE, ZRANGEBYLEX, ZRANGEBYSCORE, ZRANGEBYSCORE_ENTRY, ZRANK, ZRANK_INT, ZREM, ZREMRANGEBYLEX, ZREMRANGEBYRANK, ZREMRANGEBYSCORE, ZREVRANGEBYSCORE, ZREVRANK_INT, ZSCAN, ZSCORE, ZSCORE_CONTAINS
Constructor and Description |
---|
RedisPubSubConnection(RedisClient redisClient,
io.netty.channel.Channel channel) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(RedisPubSubListener listener) |
void |
addOneShotListener(RedisPubSubListener listener) |
Map<String,Codec> |
getChannels() |
Map<String,Codec> |
getPatternChannels() |
void |
onMessage(PubSubMessage message) |
void |
onMessage(PubSubPatternMessage message) |
void |
onMessage(PubSubStatusMessage message) |
void |
psubscribe(Codec codec,
String... channel) |
void |
punsubscribe(String... channel) |
void |
removeListener(RedisPubSubListener<?> listener) |
void |
subscribe(Codec codec,
String... channel) |
void |
unsubscribe(String... channel) |
async, async, asyncWithTimeout, await, closeAsync, create, forceReconnectAsync, getAcquireFuture, getChannel, getCurrentCommand, getFrom, getLastUsageTime, getReconnectListener, getRedisClient, isActive, isClosed, isOpen, removeCurrentCommand, send, send, setClosed, setLastUsageTime, setReconnectListener, sync, sync, toString, updateChannel
public RedisPubSubConnection(RedisClient redisClient, io.netty.channel.Channel channel)
public void addListener(RedisPubSubListener listener)
public void addOneShotListener(RedisPubSubListener listener)
public void removeListener(RedisPubSubListener<?> listener)
public void onMessage(PubSubStatusMessage message)
public void onMessage(PubSubMessage message)
public void onMessage(PubSubPatternMessage message)
public void unsubscribe(String... channel)
public void punsubscribe(String... channel)
Copyright © 2014–2016. All rights reserved.