public interface SubscriptionListener
Subscription notifications are reported by Redis as confirmation for subscribe and unsubscribe operations for channels and patterns.
Modifier and Type | Field and Description |
---|---|
static SubscriptionListener |
NO_OP_SUBSCRIPTION_LISTENER
Empty
SubscriptionListener . |
Modifier and Type | Method and Description |
---|---|
default void |
onChannelSubscribed(byte[] channel,
long count)
Notification when Redis has confirmed a channel subscription.
|
default void |
onChannelUnsubscribed(byte[] channel,
long count)
Notification when Redis has confirmed a channel un-subscription.
|
default void |
onPatternSubscribed(byte[] pattern,
long count)
Notification when Redis has confirmed a pattern subscription.
|
default void |
onPatternUnsubscribed(byte[] pattern,
long count)
Notification when Redis has confirmed a pattern un-subscription.
|
static final SubscriptionListener NO_OP_SUBSCRIPTION_LISTENER
SubscriptionListener
.default void onChannelSubscribed(byte[] channel, long count)
channel
- name of the channel.count
- subscriber count.default void onChannelUnsubscribed(byte[] channel, long count)
channel
- name of the channel.count
- subscriber count.default void onPatternSubscribed(byte[] pattern, long count)
pattern
- the pattern.count
- subscriber count.default void onPatternUnsubscribed(byte[] pattern, long count)
pattern
- the pattern.count
- subscriber count.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.