public class RedisPubSubConnection extends RedisConnection
APPEND, ASKING, AUTH, BITCOUNT, BITOP, BITPOS, BITS_SIZE, BLOCKING_COMMANDS, BLPOP_VALUE, BRPOP_VALUE, BRPOPLPUSH, CLIENT_GETNAME, CLIENT_REPLY, CLIENT_SETNAME, CLUSTER_ADDSLOTS, CLUSTER_FORGET, CLUSTER_GETKEYSINSLOT, CLUSTER_INFO, CLUSTER_MEET, CLUSTER_NODES, CLUSTER_REPLICATE, CLUSTER_RESET, CLUSTER_SETSLOT, CLUSTER_SLOTS, DBSIZE, DECR, DEL, DEL_BOOL, DEL_OBJECTS, DEL_VOID, EVAL_BOOLEAN, EVAL_BOOLEAN_AMOUNT, EVAL_BOOLEAN_WITH_VALUES, EVAL_BOOLEAN_WITH_VALUES_6, EVAL_INTEGER, EVAL_LIST, EVAL_LONG, EVAL_MAP_ENTRY, EVAL_MAP_KEY_SET, EVAL_MAP_VALUE, EVAL_MAP_VALUE_LIST, EVAL_NULL_BOOLEAN, EVAL_OBJECT, EVAL_SET, EVAL_SSCAN, EVAL_STRING, EVAL_STRING_DATA, EVAL_VOID, EVAL_VOID_WITH_VALUES, EVAL_VOID_WITH_VALUES_6, EVAL_ZSCAN, EXEC, EXISTS, EXISTS_LONG, FLUSHALL, FLUSHDB, GEOADD, GEOADD_ENTRIES, GEODIST, GEORADIUS, GEORADIUSBYMEMBER, GET, GET_INTEGER, GET_LONG, GETBIT, GETRANGE, GETSET, HDEL, HEXISTS, HGET, HGETALL, HGETALL_ENTRY, HKEYS, HLEN, HLEN_LONG, HMGET, HMSET, HSCAN, HSET, HSETNX, HSTRLEN, HVALS, INCR, INCRBY, INCRBYFLOAT, INFO_ALL, INFO_CLIENTS, INFO_CLUSTER, INFO_COMMANDSTATS, INFO_CPU, INFO_DEFAULT, INFO_KEYSPACE, INFO_MEMORY, INFO_PERSISTENCE, INFO_REPLICATION, INFO_SERVER, INFO_STATS, KEYS, KEYSLOT, LINDEX, LINSERT, LINSERT_INT, LLEN, LLEN_INT, LPOP, LPUSH, LPUSH_BOOLEAN, LPUSH_VOID, LRANGE, LRANGE_SET, LREM, LREM_SINGLE, LSET, LTRIM, MGET, MIGRATE, MOVE, MSET, MSETNX, MULTI, NOT_EXISTS, PERSIST, PEXPIRE, PEXPIREAT, PFADD, PFCOUNT, PFMERGE, PING, PING_BOOL, PSETEX, PSUBSCRIBE, PTTL, PUBLISH, PUBSUB_COMMANDS, PUNSUBSCRIBE, RANDOM_KEY, READONLY, RENAME, RENAMENX, RPOP, RPOPLPUSH, RPUSH, RPUSH_BOOLEAN, RPUSH_VOID, SADD, SADD_BOOL, SADD_SINGLE, SCAN, SCARD, SCARD_INT, SCRIPT_EXISTS, SCRIPT_FLUSH, SCRIPT_KILL, SCRIPT_LOAD, SDIFF, SDIFFSTORE, SDIFFSTORE_INT, SELECT, SENTINEL_GET_MASTER_ADDR_BY_NAME, SENTINEL_SLAVES, SET, SETBIT, SETBIT_VOID, SETNX, SETPXNX, SETRANGE, SINTER, SINTERSTORE, SINTERSTORE_INT, SISMEMBER, SMEMBERS, SMOVE, SORT_LIST, SORT_SET, SORT_TO, SPOP, SPOP_SINGLE, SRANDMEMBER_SINGLE, SREM_SINGLE, SSCAN, STRLEN, SUBSCRIBE, SUNION, SUNIONSTORE, SUNIONSTORE_INT, TIME, TOUCH, TOUCH_LONG, TYPE, UNSUBSCRIBE, UNWATCH, WATCH, ZADD, ZADD_BOOL, ZADD_BOOL_RAW, ZADD_NX_BOOL, ZADD_RAW, ZCARD, ZCARD_INT, ZCOUNT, ZINCRBY, ZINTERSTORE_INT, ZLEXCOUNT, ZRANGE, ZRANGE_ENTRY, ZRANGE_SINGLE, ZRANGEBYLEX, ZRANGEBYSCORE, ZRANGEBYSCORE_ENTRY, ZRANGEBYSCORE_LIST, ZRANK, ZRANK_INT, ZREM, ZREMRANGEBYLEX, ZREMRANGEBYRANK, ZREMRANGEBYSCORE, ZREVRANGE, ZREVRANGE_ENTRY, ZREVRANGEBYSCORE, ZREVRANGEBYSCORE_ENTRY, ZREVRANK_INT, ZSCAN, ZSCORE, ZSCORE_CONTAINS, ZUNIONSTORE_INT
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 |
onDisconnect() |
void |
onMessage(PubSubMessage message) |
void |
onMessage(PubSubPatternMessage message) |
void |
onMessage(PubSubStatusMessage message) |
void |
psubscribe(Codec codec,
String... channel) |
void |
punsubscribe(String... channels) |
void |
removeDisconnectListener(String channel) |
void |
removeListener(RedisPubSubListener<?> listener) |
void |
subscribe(Codec codec,
String... channel) |
void |
unsubscribe(String... channels) |
async, async, async, async, await, clearFastReconnect, closeAsync, create, forceFastReconnectAsync, getChannel, getCurrentCommand, getFrom, getLastUsageTime, getReconnectListener, getRedisClient, isActive, isClosed, isFastReconnect, isOpen, 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... channels)
public void removeDisconnectListener(String channel)
public void onDisconnect()
onDisconnect
in class RedisConnection
public void punsubscribe(String... channels)
Copyright © 2014–2017 The Redisson Project. All rights reserved.