Package org.redisson.client
Class RedisPubSubConnection
java.lang.Object
org.redisson.client.RedisConnection
org.redisson.client.RedisPubSubConnection
- All Implemented Interfaces:
RedisCommands
- Author:
- Nikita Koksharov
-
Nested Class Summary
Nested classes/interfaces inherited from class org.redisson.client.RedisConnection
RedisConnection.Status
-
Field Summary
Fields inherited from interface org.redisson.client.protocol.RedisCommands
APPEND, ASKING, AUTH, BGREWRITEAOF, BGSAVE, BITCOUNT, BITFIELD_BYTE, BITFIELD_INT, BITFIELD_LONG, BITFIELD_SHORT, BITFIELD_VOID, BITOP, BITPOS, BITS_SIZE, BLMOVE, BLMPOP, BLOCKING_COMMAND_NAMES, BLOCKING_COMMANDS, BLPOP, BLPOP_NAME, BLPOP_VALUE, BRPOP, BRPOP_VALUE, BRPOPLPUSH, BZMPOP, BZMPOP_ENTRIES, BZMPOP_SINGLE_LIST, BZPOPMAX_VALUE, BZPOPMIN_VALUE, CLIENT_GETNAME, CLIENT_ID, CLIENT_LIST, CLIENT_REPLY, CLIENT_SETNAME, CLIENT_TRACKING, CLUSTER_ADDSLOTS, CLUSTER_COUNTFAILUREREPORTS, CLUSTER_COUNTKEYSINSLOT, CLUSTER_DELSLOTS, CLUSTER_FLUSHSLOTS, CLUSTER_FORGET, CLUSTER_GETKEYSINSLOT, CLUSTER_INFO, CLUSTER_MEET, CLUSTER_MYID, CLUSTER_NODES, CLUSTER_NODES_SSL, CLUSTER_REPLICATE, CLUSTER_RESET, CLUSTER_SETSLOT, CLUSTER_SLOTS, CONFIG_GET, CONFIG_GET_MAP, CONFIG_RESETSTAT, CONFIG_REWRITE, CONFIG_SET, COPY, DBSIZE, DEBUG, DECR, DEL, DEL_BOOL, DEL_OBJECTS, DEL_VOID, DISCARD, DUMP, EVAL_BOOLEAN, EVAL_BOOLEAN_AMOUNT, EVAL_BOOLEAN_SAFE, EVAL_DOUBLE, EVAL_FIRST_LIST, EVAL_FIRST_LIST_ENTRY, EVAL_INT_LIST, EVAL_INTEGER, EVAL_LIST, EVAL_LIST_ENTRY, EVAL_LIST_REVERSE, EVAL_LONG, EVAL_LONG_LIST, EVAL_LONG_SAFE, EVAL_MAP, EVAL_MAP_ENTRY, EVAL_MAP_KEY_SET, EVAL_MAP_VALUE, EVAL_MAP_VALUE_LIST, EVAL_MAP_VALUE_SET, EVAL_NULL_BOOLEAN, EVAL_OBJECT, EVAL_SCAN, EVAL_SET, EVAL_STRING, EVAL_VOID, EXEC, EXISTS, EXISTS_LONG, FCALL_BOOLEAN_SAFE, FCALL_LIST, FCALL_LONG, FCALL_MAP_VALUE, FCALL_MAP_VALUE_LIST, FCALL_OBJECT, FCALL_STRING, FLUSHALL, FLUSHALL_ASYNC, FLUSHDB, FLUSHDB_ASYNC, FT_ALIASADD, FT_ALIASDEL, FT_ALIASUPDATE, FT_ALTER, FT_CONFIG_GET, FT_CONFIG_SET, FT_CREATE, FT_CURSOR_DEL, FT_DICTADD, FT_DICTDEL, FT_DICTDUMP, FT_DROPINDEX, FT_INFO, FT_LIST, FT_SPELLCHECK, FT_SYNDUMP, FT_SYNUPDATE, FUNCTION_DELETE, FUNCTION_DUMP, FUNCTION_FLUSH, FUNCTION_KILL, FUNCTION_LIST, FUNCTION_LOAD, FUNCTION_RESTORE, FUNCTION_STATS, GEOADD, GEOADD_BOOLEAN, GEODIST, GEORADIUS_RO, GEORADIUS_STORE, GEORADIUSBYMEMBER_RO, GEORADIUSBYMEMBER_STORE, GEOSEARCH, GEOSEARCHSTORE_STORE, GET, GET_DOUBLE, GET_INTEGER, GET_LONG, GETBIT, GETEX, GETRANGE, GETSET, GETSET_DOUBLE, GETSET_LONG, HDEL, HELLO, HEXISTS, HGET, HGETALL, HGETALL_ENTRY, HKEYS, HLEN, HLEN_LONG, HMGET, HMSET, HPERSIST, HPTTL, HRANDFIELD, HRANDFIELD_KEYS, HRANDFIELD_V2, HSCAN, HSET, HSET_VOID, 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, JSON_ARRAPPEND, JSON_ARRAPPEND_LIST, JSON_ARRINDEX, JSON_ARRINDEX_LIST, JSON_ARRINSERT, JSON_ARRINSERT_LIST, JSON_ARRLEN, JSON_ARRLEN_LIST, JSON_ARRPOP, JSON_ARRPOP_LIST, JSON_ARRTRIM, JSON_ARRTRIM_LIST, JSON_CLEAR, JSON_DEL, JSON_DEL_BOOLEAN, JSON_DEL_LONG, JSON_GET, JSON_MERGE, JSON_MSET, JSON_OBJKEYS, JSON_OBJKEYS_LIST, JSON_OBJLEN, JSON_OBJLEN_LIST, JSON_SET, JSON_SET_BOOLEAN, JSON_STRAPPEND, JSON_STRAPPEND_LIST, JSON_STRLEN, JSON_STRLEN_LIST, JSON_TOGGLE, JSON_TOGGLE_LIST, JSON_TYPE, KEYS, KEYSLOT, LASTSAVE, LASTSAVE_INSTANT, LCS, LINDEX, LINSERT_INT, LLEN_INT, LMOVE, LPOP, LPOP_LIST, LPOS, LPUSH, LPUSH_BOOLEAN, LPUSH_VOID, LPUSHX, LRANGE, LRANGE_SET, LREM, LSET, LTRIM, MEMORY_STATS, MEMORY_USAGE, MGET, MIGRATE, MOVE, MSET, MSETNX, MULTI, NO_RETRY, NO_RETRY_COMMANDS, NOT_EXISTS, OBJECT_IDLETIME, PERSIST, PEXPIRE, PEXPIREAT, PEXPIRETIME, PFADD, PFCOUNT, PFMERGE, PING, PING_BOOL, PSETEX, PSUBSCRIBE, PTTL, PUBLISH, PUBSUB_CHANNELS, PUBSUB_COMMANDS, PUBSUB_NUMSUB, PUBSUB_SHARDCHANNELS, PUBSUB_SHARDNUMSUB, PUNSUBSCRIBE, QUIT, RANDOM_KEY, READONLY, RENAME, RENAMENX, RESTORE, RPOP, RPOP_LIST, RPOPLPUSH, RPUSH, RPUSH_BOOLEAN, RPUSH_VOID, RPUSHX, SADD, SADD_BOOL, SADD_SINGLE, SAVE, SCAN, SCAN_COMMANDS, SCARD, SCARD_INT, SCRIPT_EXISTS, SCRIPT_FLUSH, SCRIPT_KILL, SCRIPT_LOAD, SDIFF, SDIFFSTORE, SDIFFSTORE_INT, SELECT, SENTINEL_FAILOVER, SENTINEL_GET_MASTER_ADDR_BY_NAME, SENTINEL_GET_MASTER_ADDR_BY_NAME_SSL, SENTINEL_MASTER, SENTINEL_MASTERS, SENTINEL_MONITOR, SENTINEL_REMOVE, SENTINEL_SENTINELS, SENTINEL_SLAVES, SET, SET_BOOLEAN, SETBIT, SETBIT_VOID, SETNX, SETRANGE, SHUTDOWN, SINTER, SINTERCARD_INT, SINTERSTORE, SINTERSTORE_INT, SISMEMBER, SMEMBERS, SMISMEMBER, SMOVE, SORT_LIST, SORT_SET, SORT_TO, SPOP, SPOP_SINGLE, SPUBLISH, SRANDMEMBER, SRANDMEMBER_SINGLE, SREM, SREM_SINGLE, SSCAN, SSUBSCRIBE, STRLEN, SUBSCRIBE, SUNION, SUNIONSTORE, SUNIONSTORE_INT, SUNSUBSCRIBE, SWAPDB, TIME, TIME_LONG, TOUCH, TOUCH_LONG, TYPE, UNLINK, UNLINK_BOOL, UNSUBSCRIBE, UNWATCH, WAIT, WAITAOF, WATCH, XACK, XADD, XADD_VOID, XAUTOCLAIM, XAUTOCLAIM_IDS, XCLAIM, XCLAIM_IDS, XDEL, XGROUP, XGROUP_LONG, XINFO_CONSUMERS, XINFO_GROUPS, XLEN, XPENDING, XPENDING_ENTRIES, XRANGE, XREAD, XREAD_BLOCKING, XREAD_BLOCKING_SINGLE, XREAD_BLOCKING_SINGLE_V2, XREAD_BLOCKING_V2, XREAD_SINGLE, XREAD_SINGLE_V2, XREAD_V2, XREADGROUP, XREADGROUP_BLOCKING, XREADGROUP_BLOCKING_SINGLE, XREADGROUP_BLOCKING_SINGLE_V2, XREADGROUP_BLOCKING_V2, XREADGROUP_SINGLE, XREADGROUP_SINGLE_V2, XREADGROUP_V2, XREVRANGE, XTRIM, ZADD, ZADD_BOOL, ZADD_BOOL_RAW, ZADD_INT, ZADD_NX_BOOL, ZADD_RAW, ZCARD, ZCARD_INT, ZCOUNT, ZDIFF, ZDIFFSTORE_INT, ZINCRBY, ZINTER, ZINTERCARD_INT, ZINTERSTORE_INT, ZLEXCOUNT, ZMPOP, ZMPOP_VALUES, ZPOPMAX, ZPOPMIN, ZRANDMEMBER, ZRANDMEMBER_ENTRIES, ZRANDMEMBER_SINGLE, ZRANGE, ZRANGE_ENTRY, ZRANGE_ENTRY_V2, ZRANGE_SINGLE, ZRANGE_SINGLE_ENTRY, ZRANGE_SINGLE_ENTRY_V2, ZRANGE_SINGLE_SCORE, ZRANGEBYLEX, ZRANGEBYSCORE, ZRANGEBYSCORE_ENTRY, ZRANGEBYSCORE_ENTRY_V2, ZRANGEBYSCORE_LIST, ZRANGESTORE, ZRANK, ZRANK_ENTRY, ZRANK_INT, ZREM, ZREM_INT, ZREM_LONG, ZREMRANGEBYLEX, ZREMRANGEBYRANK, ZREMRANGEBYSCORE, ZREVRANGE, ZREVRANGE_ENTRY, ZREVRANGE_ENTRY_V2, ZREVRANGEBYLEX, ZREVRANGEBYSCORE, ZREVRANGEBYSCORE_ENTRY, ZREVRANGEBYSCORE_ENTRY_V2, ZREVRANK, ZREVRANK_ENTRY, ZREVRANK_INT, ZSCAN, ZSCAN_ENTRY, ZSCORE, ZSCORE_CONTAINS, ZUNION, ZUNIONSTORE_INT
-
Constructor Summary
ConstructorDescriptionRedisPubSubConnection
(RedisClient redisClient, io.netty.channel.Channel channel, CompletableFuture<RedisPubSubConnection> connectionPromise) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(RedisPubSubListener<?> listener) void
void
onMessage
(PubSubMessage message) void
onMessage
(PubSubPatternMessage message) void
onMessage
(PubSubStatusMessage message) io.netty.channel.ChannelFuture
psubscribe
(CompletableFuture<Void> promise, Codec codec, ChannelName... channels) io.netty.channel.ChannelFuture
psubscribe
(Codec codec, ChannelName... channels) void
removeDisconnectListener
(ChannelName channel) void
removeListener
(RedisPubSubListener<?> listener) io.netty.channel.ChannelFuture
ssubscribe
(CompletableFuture<Void> promise, Codec codec, ChannelName... channels) io.netty.channel.ChannelFuture
ssubscribe
(Codec codec, ChannelName... channels) io.netty.channel.ChannelFuture
subscribe
(CompletableFuture<Void> promise, Codec codec, ChannelName... channels) io.netty.channel.ChannelFuture
subscribe
(Codec codec, ChannelName... channels) io.netty.channel.ChannelFuture
unsubscribe
(PubSubType type, ChannelName... channels) Methods inherited from class org.redisson.client.RedisConnection
async, async, async, async, async, await, clearFastReconnect, close, closeAsync, closeIdleAsync, create, decUsage, fireConnected, forceFastReconnectAsync, getChannel, getConnectionPromise, getCurrentCommand, getCurrentCommandData, getFrom, getLastCommand, getLastUsageTime, getRedisClient, getUsage, incUsage, isActive, isClosed, isClosedIdle, isFastReconnect, isOpen, send, send, setConnectedListener, setDisconnectedListener, setLastUsageTime, sync, sync, toString, updateChannel
-
Constructor Details
-
RedisPubSubConnection
public RedisPubSubConnection(RedisClient redisClient, io.netty.channel.Channel channel, CompletableFuture<RedisPubSubConnection> connectionPromise)
-
-
Method Details
-
addListener
-
removeListener
-
onMessage
-
onMessage
-
onMessage
-
subscribe
public io.netty.channel.ChannelFuture subscribe(CompletableFuture<Void> promise, Codec codec, ChannelName... channels) -
ssubscribe
public io.netty.channel.ChannelFuture ssubscribe(CompletableFuture<Void> promise, Codec codec, ChannelName... channels) -
psubscribe
public io.netty.channel.ChannelFuture psubscribe(CompletableFuture<Void> promise, Codec codec, ChannelName... channels) -
subscribe
-
ssubscribe
-
psubscribe
-
unsubscribe
-
removeDisconnectListener
-
fireDisconnected
public void fireDisconnected()- Overrides:
fireDisconnected
in classRedisConnection
-
getShardedChannels
-
getChannels
-
getPatternChannels
-