K
- Key type.V
- Value type.public interface RedisPubSubReactiveCommands<K,V> extends RedisReactiveCommands<K,V>
Modifier and Type | Method and Description |
---|---|
StatefulRedisPubSubConnection<K,V> |
getStatefulConnection() |
Flux<ChannelMessage<K,V>> |
observeChannels()
Flux for messages (message) received though channel subscriptions.
|
Flux<ChannelMessage<K,V>> |
observeChannels(FluxSink.OverflowStrategy overflowStrategy)
Flux for messages (message) received though channel subscriptions.
|
Flux<PatternMessage<K,V>> |
observePatterns()
Flux for messages (pmessage) received though pattern subscriptions.
|
Flux<PatternMessage<K,V>> |
observePatterns(FluxSink.OverflowStrategy overflowStrategy)
Flux for messages (pmessage) received though pattern subscriptions.
|
Mono<Void> |
psubscribe(K... patterns)
Listen for messages published to channels matching the given patterns.
|
Mono<Void> |
punsubscribe(K... patterns)
Stop listening for messages posted to channels matching the given patterns.
|
Mono<Void> |
subscribe(K... channels)
Listen for messages published to the given channels.
|
Mono<Void> |
unsubscribe(K... channels)
Stop listening for messages posted to the given channels.
|
auth, select, swapdb
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, del, mget, mset, msetnx, readOnly, readWrite, setTimeout, setTimeout
hdel, hexists, hget, hgetall, hgetall, hincrby, hincrbyfloat, hkeys, hkeys, hlen, hmget, hmget, hmset, hscan, hscan, hscan, hscan, hscan, hscan, hscan, hscan, hset, hsetnx, hstrlen, hvals, hvals
dump, exists, expire, expireat, expireat, keys, keys, migrate, migrate, move, objectEncoding, objectIdletime, objectRefcount, persist, pexpire, pexpireat, pexpireat, pttl, randomkey, rename, renamenx, restore, scan, scan, scan, scan, scan, scan, scan, scan, sort, sort, sort, sort, sortStore, touch, ttl, type, unlink
append, bitcount, bitcount, bitfield, bitopAnd, bitopNot, bitopOr, bitopXor, bitpos, bitpos, bitpos, decr, decrby, get, getbit, getrange, getset, incr, incrby, incrbyfloat, mget, psetex, set, set, setbit, setex, setnx, setrange, strlen
blpop, brpop, brpoplpush, lindex, linsert, llen, lpop, lpush, lpushx, lrange, lrange, lrem, lset, ltrim, rpop, rpoplpush, rpush, rpushx
sadd, scard, sdiff, sdiff, sdiffstore, sinter, sinter, sinterstore, sismember, smembers, smembers, smove, spop, spop, srandmember, srandmember, srandmember, srem, sscan, sscan, sscan, sscan, sscan, sscan, sscan, sscan, sunion, sunion, sunionstore
zadd, zadd, zadd, zadd, zadd, zadd, zaddincr, zaddincr, zcard, zcount, zcount, zcount, zincrby, zinterstore, zinterstore, zlexcount, zlexcount, 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, 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, zrevrangeWithScores, zrevrangeWithScores, zrevrank, zscan, zscan, zscan, zscan, zscan, zscan, zscan, zscan, zscore, zunionstore, zunionstore
digest, eval, eval, evalsha, evalsha, scriptExists, scriptFlush, scriptKill, scriptLoad
bgrewriteaof, bgsave, clientGetname, clientKill, clientKill, clientList, clientPause, clientSetname, command, commandCount, commandInfo, commandInfo, configGet, configResetstat, configRewrite, configSet, dbsize, debugCrashAndRecover, debugHtstats, debugObject, debugOom, debugReload, debugRestart, debugSdslen, debugSegfault, flushall, flushallAsync, flushdb, flushdbAsync, info, info, lastsave, save, shutdown, slaveof, slaveofNoOne, slowlogGet, slowlogGet, slowlogLen, slowlogReset, time
pfadd, pfcount, pfmerge
geoadd, geoadd, geodist, geohash, geopos, georadius, georadius, georadius, georadiusbymember, georadiusbymember, georadiusbymember
dispatch, dispatch, echo, flushCommands, isOpen, ping, publish, pubsubChannels, pubsubChannels, pubsubNumpat, pubsubNumsub, quit, reset, role, setAutoFlushCommands, waitForReplication
Flux<PatternMessage<K,V>> observePatterns()
psubscribe(Object[])
.
Warning! This method uses FluxSink.OverflowStrategy.BUFFER
This does unbounded buffering
and may lead to OutOfMemoryError
. Use observePatterns(FluxSink.OverflowStrategy)
to specify a different
strategy.
Flux<PatternMessage<K,V>> observePatterns(FluxSink.OverflowStrategy overflowStrategy)
psubscribe(Object[])
.overflowStrategy
- the overflow strategy to use.Flux<ChannelMessage<K,V>> observeChannels()
subscribe(Object[])
.
Warning! This method uses FluxSink.OverflowStrategy.BUFFER
This does unbounded buffering
and may lead to OutOfMemoryError
. Use observeChannels(FluxSink.OverflowStrategy)
to specify a different
strategy.
Flux<ChannelMessage<K,V>> observeChannels(FluxSink.OverflowStrategy overflowStrategy)
subscribe(Object[])
.overflowStrategy
- the overflow strategy to use.Mono<Void> psubscribe(K... patterns)
patterns
- the patternspsubscribe
commandMono<Void> punsubscribe(K... patterns)
patterns
- the patternspunsubscribe
commandMono<Void> subscribe(K... channels)
channels
- the channelssubscribe
commandMono<Void> unsubscribe(K... channels)
channels
- the channelsunsubscribe
command.StatefulRedisPubSubConnection<K,V> getStatefulConnection()
getStatefulConnection
in interface RedisReactiveCommands<K,V>
Copyright © 2017 lettuce.io. All rights reserved.