K - Key type.V - Value type.public class RedisPubSubAdapter<K,V> extends Object implements RedisPubSubListener<K,V>
RedisPubSubListener callback methods.| Constructor and Description |
|---|
RedisPubSubAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
message(K pattern,
K channel,
V message)
Message received from a pattern subscription.
|
void |
message(K channel,
V message)
Message received from a channel subscription.
|
void |
psubscribed(K pattern,
long count)
Subscribed to a pattern.
|
void |
punsubscribed(K pattern,
long count)
Unsubscribed from a pattern.
|
void |
smessage(K shardChannel,
V message)
Message received from a shard channel subscription.
|
void |
ssubscribed(K shardChannel,
long count)
Subscribed to a Shard channel.
|
void |
subscribed(K channel,
long count)
Subscribed to a channel.
|
void |
sunsubscribed(K shardChannel,
long count)
Unsubscribed from a shard channel.
|
void |
unsubscribed(K channel,
long count)
Unsubscribed from a channel.
|
public void message(K channel, V message)
RedisPubSubListenermessage in interface RedisPubSubListener<K,V>channel - Channel.message - Message.public void message(K pattern, K channel, V message)
RedisPubSubListenermessage in interface RedisPubSubListener<K,V>pattern - Patternchannel - Channelmessage - Messagepublic void subscribed(K channel, long count)
RedisPubSubListenersubscribed in interface RedisPubSubListener<K,V>channel - Channelcount - Subscription count.public void psubscribed(K pattern, long count)
RedisPubSubListenerpsubscribed in interface RedisPubSubListener<K,V>pattern - Pattern.count - Subscription count.public void unsubscribed(K channel, long count)
RedisPubSubListenerunsubscribed in interface RedisPubSubListener<K,V>channel - Channelcount - Subscription count.public void punsubscribed(K pattern, long count)
RedisPubSubListenerpunsubscribed in interface RedisPubSubListener<K,V>pattern - Channelcount - Subscription count.public void smessage(K shardChannel, V message)
RedisPubSubListenersmessage in interface RedisPubSubListener<K,V>shardChannel - shard channel.message - Message.public void ssubscribed(K shardChannel, long count)
RedisPubSubListenerssubscribed in interface RedisPubSubListener<K,V>shardChannel - Shard channelcount - Subscription count.public void sunsubscribed(K shardChannel, long count)
RedisPubSubListenersunsubscribed in interface RedisPubSubListener<K,V>shardChannel - Channelcount - Subscription count.Copyright © 2025 lettuce.io. All rights reserved.