java.lang.Object
io.lettuce.core.cluster.pubsub.RedisClusterPubSubAdapter<K,V>
- Type Parameters:
K- Key type.V- Value type.
- All Implemented Interfaces:
RedisClusterPubSubListener<K,V>
public class RedisClusterPubSubAdapter<K,V> extends Object implements RedisClusterPubSubListener<K,V>
Convenience adapter with an empty implementation of all
RedisClusterPubSubListener callback methods.- Since:
- 4.4
- Author:
- Mark Paluch
-
Constructor Summary
Constructors Constructor Description RedisClusterPubSubAdapter() -
Method Summary
Modifier and Type Method Description voidmessage(RedisClusterNode node, K pattern, K channel, V message)Message received from a pattern subscription.voidmessage(RedisClusterNode node, K channel, V message)Message received from a channel subscription.voidpsubscribed(RedisClusterNode node, K pattern, long count)Subscribed to a pattern.voidpunsubscribed(RedisClusterNode node, K pattern, long count)Unsubscribed from a pattern.voidsubscribed(RedisClusterNode node, K channel, long count)Subscribed to a channel.voidunsubscribed(RedisClusterNode node, K channel, long count)Unsubscribed from a channel.
-
Constructor Details
-
RedisClusterPubSubAdapter
public RedisClusterPubSubAdapter()
-
-
Method Details
-
message
Description copied from interface:RedisClusterPubSubListenerMessage received from a channel subscription.- Specified by:
messagein interfaceRedisClusterPubSubListener<K,V>- Parameters:
node- theRedisClusterNodefrom which themessageoriginates.channel- Channel.message- Message.
-
message
Description copied from interface:RedisClusterPubSubListenerMessage received from a pattern subscription.- Specified by:
messagein interfaceRedisClusterPubSubListener<K,V>- Parameters:
node- theRedisClusterNodefrom which themessageoriginates.pattern- Patternchannel- Channelmessage- Message
-
subscribed
Description copied from interface:RedisClusterPubSubListenerSubscribed to a channel.- Specified by:
subscribedin interfaceRedisClusterPubSubListener<K,V>- Parameters:
node- theRedisClusterNodefrom which themessageoriginates.channel- Channelcount- Subscription count.
-
psubscribed
Description copied from interface:RedisClusterPubSubListenerSubscribed to a pattern.- Specified by:
psubscribedin interfaceRedisClusterPubSubListener<K,V>- Parameters:
node- theRedisClusterNodefrom which themessageoriginates.pattern- Pattern.count- Subscription count.
-
unsubscribed
Description copied from interface:RedisClusterPubSubListenerUnsubscribed from a channel.- Specified by:
unsubscribedin interfaceRedisClusterPubSubListener<K,V>- Parameters:
node- theRedisClusterNodefrom which themessageoriginates.channel- Channelcount- Subscription count.
-
punsubscribed
Description copied from interface:RedisClusterPubSubListenerUnsubscribed from a pattern.- Specified by:
punsubscribedin interfaceRedisClusterPubSubListener<K,V>- Parameters:
node- theRedisClusterNodefrom which themessageoriginates.pattern- Channelcount- Subscription count.
-