java.lang.Object
io.lettuce.core.pubsub.RedisPubSubAdapter<K,V>
- Type Parameters:
K- Key type.V- Value type.
- All Implemented Interfaces:
RedisPubSubListener<K,V>
public class RedisPubSubAdapter<K,V> extends Object implements RedisPubSubListener<K,V>
Convenience adapter with an empty implementation of all
RedisPubSubListener callback methods.- Author:
- Will Glozer
-
Constructor Summary
Constructors Constructor Description RedisPubSubAdapter() -
Method Summary
Modifier and Type Method Description voidmessage(K pattern, K channel, V message)Message received from a pattern subscription.voidmessage(K channel, V message)Message received from a channel subscription.voidpsubscribed(K pattern, long count)Subscribed to a pattern.voidpunsubscribed(K pattern, long count)Unsubscribed from a pattern.voidsubscribed(K channel, long count)Subscribed to a channel.voidunsubscribed(K channel, long count)Unsubscribed from a channel.
-
Constructor Details
-
RedisPubSubAdapter
public RedisPubSubAdapter()
-
-
Method Details
-
message
Description copied from interface:RedisPubSubListenerMessage received from a channel subscription.- Specified by:
messagein interfaceRedisPubSubListener<K,V>- Parameters:
channel- Channel.message- Message.
-
message
Description copied from interface:RedisPubSubListenerMessage received from a pattern subscription.- Specified by:
messagein interfaceRedisPubSubListener<K,V>- Parameters:
pattern- Patternchannel- Channelmessage- Message
-
subscribed
Description copied from interface:RedisPubSubListenerSubscribed to a channel.- Specified by:
subscribedin interfaceRedisPubSubListener<K,V>- Parameters:
channel- Channelcount- Subscription count.
-
psubscribed
Description copied from interface:RedisPubSubListenerSubscribed to a pattern.- Specified by:
psubscribedin interfaceRedisPubSubListener<K,V>- Parameters:
pattern- Pattern.count- Subscription count.
-
unsubscribed
Description copied from interface:RedisPubSubListenerUnsubscribed from a channel.- Specified by:
unsubscribedin interfaceRedisPubSubListener<K,V>- Parameters:
channel- Channelcount- Subscription count.
-
punsubscribed
Description copied from interface:RedisPubSubListenerUnsubscribed from a pattern.- Specified by:
punsubscribedin interfaceRedisPubSubListener<K,V>- Parameters:
pattern- Channelcount- Subscription count.
-