PSUBSCRIBE Subscribes the client to the given patterns.
PSUBSCRIBE Subscribes the client to the given patterns.
See subscribe() for more details.
PUBLISH Posts a message to the given channel.
PUNSUBSCRIBE Unsubscribes the client from the given patterns, or from all of them if none is given.
SUBSCRIBE Subscribes the client to the specified channels.
SUBSCRIBE Subscribes the client to the specified channels. Once the client enters the subscribed state it is not supposed to issue any other commands, except for additional SUBSCRIBE, PSUBSCRIBE, UNSUBSCRIBE and PUNSUBSCRIBE commands.
Any command, except of QUIT, SUBSCRIBE, PSUBSCRIBE, UNSUBSCRIBE and PUNSUBSCRIBE will fail with com.redis.RedisConnection.CommandRejected cause.
The actor passed in the listener parameter will receive messages from all channels the underlying client is subscribed to. It means, every listeners registered with the client will receive messages from all channels, no matter which combinations of listeners and channels were passed to the call(s).
The result of the command is not available directly. The listener will receive one or more Subscribed events in the case of success.
UNSUBSCRIBE Unsubscribes the client from the given channels, or from all of them if none is given.
UNSUBSCRIBE Unsubscribes the client from the given channels, or from all of them if none is given. When no channels are specified, the client is unsubscribed from all the previously subscribed channels. In this case, a message for every unsubscribed channel will be sent to the client.
The operation affects all listeners registered with the client. A result of the operation will be reported to listeners via Unsubscribed messages.