Interface RedisPubSubReactiveCommands<K,​V>

    • Method Detail

      • observePatterns

        Flux<PatternMessage<K,​V>> observePatterns​(FluxSink.OverflowStrategy overflowStrategy)
        Flux for messages (pmessage) received though pattern subscriptions. The connection needs to be subscribed to one or more patterns using psubscribe(Object[]).
        Parameters:
        overflowStrategy - the overflow strategy to use.
        Returns:
        hot Flux for subscriptions to pmessage's.
      • observeChannels

        Flux<ChannelMessage<K,​V>> observeChannels​(FluxSink.OverflowStrategy overflowStrategy)
        Flux for messages (message) received though channel subscriptions. The connection needs to be subscribed to one or more channels using subscribe(Object[]).
        Parameters:
        overflowStrategy - the overflow strategy to use.
        Returns:
        hot Flux for subscriptions to message's.
      • psubscribe

        Mono<Void> psubscribe​(K... patterns)
        Listen for messages published to channels matching the given patterns. The Mono completes without a result as soon as the pattern subscription is registered.
        Parameters:
        patterns - the patterns.
        Returns:
        Mono<Void> Mono for psubscribe command.
      • punsubscribe

        Mono<Void> punsubscribe​(K... patterns)
        Stop listening for messages posted to channels matching the given patterns. The Mono completes without a result as soon as the pattern subscription is unregistered.
        Parameters:
        patterns - the patterns.
        Returns:
        Mono<Void> Mono for punsubscribe command.
      • subscribe

        Mono<Void> subscribe​(K... channels)
        Listen for messages published to the given channels. The Mono completes without a result as soon as the * subscription is registered.
        Parameters:
        channels - the channels.
        Returns:
        Mono<Void> Mono for subscribe command.
      • unsubscribe

        Mono<Void> unsubscribe​(K... channels)
        Stop listening for messages posted to the given channels. The Mono completes without a result as soon as the subscription is unregistered.
        Parameters:
        channels - the channels.
        Returns:
        Mono<Void> Mono for unsubscribe command.