Same as subscribe(String...), but instead of receiving the message payload directly, it receives
instances of RedisPubSubMessage wrapping the payload and the channel on which the message has been sent.
onMessage - the message consumer. Be aware that this callback is invoked for each message sent to the given
channel, and is invoked on the I/O thread. So, you must not block. Offload to
a separate thread if needed.
onMessage - the message consumer. Be aware that this callback is invoked for each message sent to the
channels matching the pattern, and is invoked on the I/O thread. So, you must
not block. Offload to a separate thread if needed.
onMessage - the message consumer. Be aware that this callback is invoked for each message sent to the
channels matching the pattern, and is invoked on the I/O thread. So, you must
not block. Offload to a separate thread if needed. The first parameter is the name of the
channel. The second parameter is the payload.
onMessage - the message consumer. Be aware that this callback is invoked for each message sent to the
channels matching the pattern, and is invoked on the I/O thread. So, you must
not block. Offload to a separate thread if needed.
onMessage - the message consumer. Be aware that this callback is invoked for each message sent to the
channels matching the pattern, and is invoked on the I/O thread. So, you must
not block. Offload to a separate thread if needed. The first parameter is the channel name.
The second one if the payload.
onMessage - the message consumer. Be aware that this callback is invoked for each message sent to the given
channels, and is invoked on the I/O thread. So, you must not block. Offload to
a separate thread if needed.
Same as subscribe(List, Consumer), but instead of just receiving the payload, it also receives the
channel name.
Parameters:
channels - the channels
onMessage - the message consumer. Be aware that this callback is invoked for each message sent to the given
channels, and is invoked on the I/O thread. So, you must not block. Offload to
a separate thread if needed. The first parameter is the channel name. The second one if the
payload.
onMessage - the message consumer. Be aware that this callback is invoked for each message sent to the given
channel, and is invoked on the I/O thread. So, you must not block. Offload to
a separate thread if needed.
onEnd - the end handler. Be aware that this callback is invoked on the I/O thread.
So, you must not block. Offload to a separate thread if needed.
onException - the exception handler. Be aware that this callback is invoked on the I/O thread.
So, you must not block. Offload to a separate thread if needed.
onMessage - the message consumer. Be aware that this callback is invoked for each message sent to the
channels matching the pattern, and is invoked on the I/O thread. So, you must
not block. Offload to a separate thread if needed.
onEnd - the end handler. Be aware that this callback is invoked on the I/O thread.
So, you must not block. Offload to a separate thread if needed.
onException - the exception handler. Be aware that this callback is invoked on the I/O thread.
So, you must not block. Offload to a separate thread if needed.
onMessage - the message consumer. Be aware that this callback is invoked for each message sent to the
channels matching the pattern, and is invoked on the I/O thread. So, you must
not block. Offload to a separate thread if needed. The first parameter is the name of the
channel. The second parameter is the payload.
onEnd - the end handler. Be aware that this callback is invoked on the I/O thread.
So, you must not block. Offload to a separate thread if needed.
onException - the exception handler. Be aware that this callback is invoked on the I/O thread.
So, you must not block. Offload to a separate thread if needed.
onMessage - the message consumer. Be aware that this callback is invoked for each message sent to the
channels matching the pattern, and is invoked on the I/O thread. So, you must
not block. Offload to a separate thread if needed.
onEnd - the end handler. Be aware that this callback is invoked on the I/O thread.
So, you must not block. Offload to a separate thread if needed.
onException - the exception handler. Be aware that this callback is invoked on the I/O thread.
So, you must not block. Offload to a separate thread if needed.
onMessage - the message consumer. Be aware that this callback is invoked for each message sent to the
channels matching the pattern, and is invoked on the I/O thread. So, you must
not block. Offload to a separate thread if needed. The first parameter is the name of the
channel. The second parameter is the payload.
onEnd - the end handler. Be aware that this callback is invoked on the I/O thread.
So, you must not block. Offload to a separate thread if needed.
onException - the exception handler. Be aware that this callback is invoked on the I/O thread.
So, you must not block. Offload to a separate thread if needed.
onMessage - the message consumer. Be aware that this callback is invoked for each message sent to the given
channels, and is invoked on the I/O thread. So, you must not block. Offload to
a separate thread if needed.
onEnd - the end handler. Be aware that this callback is invoked on the I/O thread.
So, you must not block. Offload to a separate thread if needed.
onException - the exception handler. Be aware that this callback is invoked on the I/O thread.
So, you must not block. Offload to a separate thread if needed.
onMessage - the message consumer. Be aware that this callback is invoked for each message sent to the given
channels, and is invoked on the I/O thread. So, you must not block. Offload to
a separate thread if needed. The first parameter is the name of the channel. The second
parameter is the payload.
onEnd - the end handler. Be aware that this callback is invoked on the I/O thread.
So, you must not block. Offload to a separate thread if needed.
onException - the exception handler. Be aware that this callback is invoked on the I/O thread.
So, you must not block. Offload to a separate thread if needed.
Subscribes to the given channels.
This method returns a Multi emitting an item of type V for each received message.
This emission happens on the I/O thread, so you must not block. Use emitOn to offload
the processing to another thread.
Same as subscribe(String...), but instead of receiving the message payload directly, it receives
instances of RedisPubSubMessage wrapping the payload and the channel on which the message has been sent.
Subscribes to the given patterns.
This method returns a Multi emitting an item of type V for each received message.
This emission happens on the I/O thread, so you must not block. Use emitOn to offload
the processing to another thread.