Module lettuce.core
Interface RedisClusterPubSubCommands<K,V>
- Type Parameters:
K- Key type.V- Value type.
- All Superinterfaces:
BaseRedisCommands<K,V>,RedisAclCommands<K,V>,RedisClusterCommands<K,V>,RedisCommands<K,V>,RedisGeoCommands<K,V>,RedisHashCommands<K,V>,RedisHLLCommands<K,V>,RedisKeyCommands<K,V>,RedisListCommands<K,V>,RedisPubSubCommands<K,V>,RedisScriptingCommands<K,V>,RedisServerCommands<K,V>,RedisSetCommands<K,V>,RedisSortedSetCommands<K,V>,RedisStreamCommands<K,V>,RedisStringCommands<K,V>,RedisTransactionalCommands<K,V>
public interface RedisClusterPubSubCommands<K,V> extends RedisPubSubCommands<K,V>
Synchronous and thread-safe Redis Cluster PubSub API. Operations are executed either on the main connection or a
PubSubNodeSelection.- Since:
- 4.4
- Author:
- Mark Paluch
-
Method Summary
Modifier and Type Method Description default PubSubNodeSelection<K,V>all()Select all known cluster nodes.StatefulRedisClusterPubSubConnection<K,V>getStatefulConnection()default PubSubNodeSelection<K,V>masters()Deprecated.PubSubNodeSelection<K,V>nodes(Predicate<RedisClusterNode> predicate)Select nodes by a predicate.default PubSubNodeSelection<K,V>replicas()Select all replicas.default PubSubNodeSelection<K,V>replicas(Predicate<RedisClusterNode> predicate)Select all replicas.default PubSubNodeSelection<K,V>slaves()Deprecated.since 5.2, usereplicas()default PubSubNodeSelection<K,V>slaves(Predicate<RedisClusterNode> predicate)Deprecated.since 5.2, usereplicas(Predicate)default PubSubNodeSelection<K,V>upstream()Select all upstream nodes.Methods inherited from interface io.lettuce.core.api.sync.BaseRedisCommands
dispatch, dispatch, echo, isOpen, ping, publish, pubsubChannels, pubsubChannels, pubsubNumpat, pubsubNumsub, quit, reset, role, waitForReplicationMethods inherited from interface io.lettuce.core.api.sync.RedisAclCommands
aclCat, aclCat, aclDeluser, aclGenpass, aclGenpass, aclGetuser, aclList, aclLoad, aclLog, aclLog, aclLogReset, aclSave, aclSetuser, aclUsers, aclWhoamiMethods inherited from interface io.lettuce.core.cluster.api.sync.RedisClusterCommands
asking, clusterAddSlots, clusterBumpepoch, clusterCountFailureReports, clusterCountKeysInSlot, clusterDelSlots, clusterFailover, clusterFlushslots, clusterForget, clusterGetKeysInSlot, clusterInfo, clusterKeyslot, clusterMeet, clusterMyId, clusterNodes, clusterReplicate, clusterReset, clusterSaveconfig, clusterSetConfigEpoch, clusterSetSlotImporting, clusterSetSlotMigrating, clusterSetSlotNode, clusterSetSlotStable, clusterSlaves, clusterSlots, readOnly, readWrite, setTimeoutMethods inherited from interface io.lettuce.core.api.sync.RedisCommands
auth, auth, select, swapdbMethods inherited from interface io.lettuce.core.api.sync.RedisGeoCommands
geoadd, geoadd, geoadd, geoadd, geoadd, geoadd, geodist, geohash, geopos, georadius, georadius, georadius, georadiusbymember, georadiusbymember, georadiusbymember, geosearch, geosearch, geosearchstoreMethods inherited from interface io.lettuce.core.api.sync.RedisHashCommands
hdel, hexists, hget, hgetall, hgetall, hincrby, hincrbyfloat, hkeys, hkeys, hlen, hmget, hmget, hmset, hrandfield, hrandfield, hrandfieldWithvalues, hrandfieldWithvalues, hscan, hscan, hscan, hscan, hscan, hscan, hscan, hscan, hset, hset, hsetnx, hstrlen, hvals, hvalsMethods inherited from interface io.lettuce.core.api.sync.RedisHLLCommands
pfadd, pfcount, pfmergeMethods inherited from interface io.lettuce.core.api.sync.RedisKeyCommands
copy, copy, del, dump, exists, expire, expire, expireat, expireat, expireat, keys, keys, migrate, migrate, move, objectEncoding, objectFreq, objectIdletime, objectRefcount, persist, pexpire, pexpire, pexpireat, pexpireat, pexpireat, pttl, randomkey, rename, renamenx, restore, restore, scan, scan, scan, scan, scan, scan, scan, scan, sort, sort, sort, sort, sortStore, touch, ttl, type, unlinkMethods inherited from interface io.lettuce.core.api.sync.RedisListCommands
blmove, blpop, brpop, brpoplpush, lindex, linsert, llen, lmove, lpop, lpop, lpos, lpos, lpos, lpos, lpush, lpushx, lrange, lrange, lrem, lset, ltrim, rpop, rpop, rpoplpush, rpush, rpushxMethods inherited from interface io.lettuce.core.pubsub.api.sync.RedisPubSubCommands
psubscribe, punsubscribe, subscribe, unsubscribeMethods inherited from interface io.lettuce.core.api.sync.RedisScriptingCommands
digest, digest, eval, eval, eval, eval, evalsha, evalsha, scriptExists, scriptFlush, scriptFlush, scriptKill, scriptLoad, scriptLoadMethods inherited from interface io.lettuce.core.api.sync.RedisServerCommands
bgrewriteaof, bgsave, clientCaching, clientGetname, clientGetredir, clientId, clientKill, clientKill, clientList, clientPause, clientSetname, clientTracking, clientUnblock, command, commandCount, commandInfo, commandInfo, configGet, configResetstat, configRewrite, configSet, dbsize, debugCrashAndRecover, debugHtstats, debugObject, debugOom, debugReload, debugRestart, debugSdslen, debugSegfault, flushall, flushall, flushallAsync, flushdb, flushdb, flushdbAsync, info, info, lastsave, memoryUsage, save, shutdown, slaveof, slaveofNoOne, slowlogGet, slowlogGet, slowlogLen, slowlogReset, timeMethods inherited from interface io.lettuce.core.api.sync.RedisSetCommands
sadd, scard, sdiff, sdiff, sdiffstore, sinter, sinter, sinterstore, sismember, smembers, smembers, smismember, smove, spop, spop, srandmember, srandmember, srandmember, srem, sscan, sscan, sscan, sscan, sscan, sscan, sscan, sscan, sunion, sunion, sunionstoreMethods inherited from interface io.lettuce.core.api.sync.RedisSortedSetCommands
bzpopmax, bzpopmin, zadd, zadd, zadd, zadd, zadd, zadd, zaddincr, zaddincr, zcard, zcount, zcount, zcount, zdiff, zdiffstore, zdiffWithScores, zincrby, zinter, zinter, zinterstore, zinterstore, zinterWithScores, zinterWithScores, zlexcount, zlexcount, zmscore, zpopmax, zpopmax, zpopmin, zpopmin, zrandmember, zrandmember, zrandmemberWithScores, zrandmemberWithScores, zrange, zrange, zrangebylex, zrangebylex, zrangebylex, zrangebylex, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangestorebylex, zrangestorebyscore, zrangeWithScores, zrangeWithScores, zrank, zrem, zremrangebylex, zremrangebylex, zremrangebyrank, zremrangebyscore, zremrangebyscore, zremrangebyscore, zrevrange, zrevrange, zrevrangebylex, zrevrangebylex, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangestorebylex, zrevrangestorebyscore, zrevrangeWithScores, zrevrangeWithScores, zrevrank, zscan, zscan, zscan, zscan, zscan, zscan, zscan, zscan, zscore, zunion, zunion, zunionstore, zunionstore, zunionWithScores, zunionWithScoresMethods inherited from interface io.lettuce.core.api.sync.RedisStreamCommands
xack, xadd, xadd, xadd, xadd, xautoclaim, xclaim, xclaim, xdel, xgroupCreate, xgroupCreate, xgroupCreateconsumer, xgroupDelconsumer, xgroupDestroy, xgroupSetid, xinfoConsumers, xinfoGroups, xinfoStream, xlen, xpending, xpending, xpending, xpending, xrange, xrange, xread, xread, xreadgroup, xreadgroup, xrevrange, xrevrange, xtrim, xtrim, xtrimMethods inherited from interface io.lettuce.core.api.sync.RedisStringCommands
append, bitcount, bitcount, bitfield, bitopAnd, bitopNot, bitopOr, bitopXor, bitpos, bitpos, bitpos, decr, decrby, get, getbit, getdel, getex, getrange, getset, incr, incrby, incrbyfloat, mget, mget, mset, msetnx, psetex, set, set, setbit, setex, setGet, setGet, setnx, setrange, stralgoLcs, strlen
-
Method Details
-
getStatefulConnection
StatefulRedisClusterPubSubConnection<K,V> getStatefulConnection()- Specified by:
getStatefulConnectionin interfaceRedisCommands<K,V>- Specified by:
getStatefulConnectionin interfaceRedisPubSubCommands<K,V>- Returns:
- the underlying connection.
-
masters
Deprecated.since 6.0 in favor ofupstream().Select all upstream nodes.- Returns:
- API with asynchronous executed commands on a selection of upstream cluster nodes.
-
upstream
Select all upstream nodes.- Returns:
- API with asynchronous executed commands on a selection of upstream cluster nodes.
- Since:
- 6.0
-
slaves
Deprecated.since 5.2, usereplicas()Select all replicas.- Returns:
- API with asynchronous executed commands on a selection of replica cluster nodes.
-
slaves
Deprecated.since 5.2, usereplicas(Predicate)Select all replicas.- Parameters:
predicate- Predicate to filter nodes- Returns:
- API with asynchronous executed commands on a selection of replica cluster nodes.
-
replicas
Select all replicas.- Returns:
- API with asynchronous executed commands on a selection of replica cluster nodes.
- Since:
- 5.2
-
replicas
Select all replicas.- Parameters:
predicate- Predicate to filter nodes- Returns:
- API with asynchronous executed commands on a selection of replica cluster nodes.
- Since:
- 5.2
-
all
Select all known cluster nodes.- Returns:
- API with asynchronous executed commands on a selection of all cluster nodes.
-
nodes
Select nodes by a predicate.- Parameters:
predicate- Predicate to filter nodes- Returns:
- API with asynchronous executed commands on a selection of cluster nodes matching
predicate
-
upstream().