Package io.lettuce.core.pubsub
Class RedisPubSubAdapter<K,V>
- 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 allRedisPubSubListener
callback methods.- Author:
- Will Glozer
-
-
Constructor Summary
Constructors Constructor Description RedisPubSubAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
subscribed(K channel, long count)
Subscribed to a channel.void
unsubscribed(K channel, long count)
Unsubscribed from a channel.
-
-
-
Method Detail
-
message
public void message(K channel, V message)
Description copied from interface:RedisPubSubListener
Message received from a channel subscription.- Specified by:
message
in interfaceRedisPubSubListener<K,V>
- Parameters:
channel
- Channel.message
- Message.
-
message
public void message(K pattern, K channel, V message)
Description copied from interface:RedisPubSubListener
Message received from a pattern subscription.- Specified by:
message
in interfaceRedisPubSubListener<K,V>
- Parameters:
pattern
- Patternchannel
- Channelmessage
- Message
-
subscribed
public void subscribed(K channel, long count)
Description copied from interface:RedisPubSubListener
Subscribed to a channel.- Specified by:
subscribed
in interfaceRedisPubSubListener<K,V>
- Parameters:
channel
- Channelcount
- Subscription count.
-
psubscribed
public void psubscribed(K pattern, long count)
Description copied from interface:RedisPubSubListener
Subscribed to a pattern.- Specified by:
psubscribed
in interfaceRedisPubSubListener<K,V>
- Parameters:
pattern
- Pattern.count
- Subscription count.
-
unsubscribed
public void unsubscribed(K channel, long count)
Description copied from interface:RedisPubSubListener
Unsubscribed from a channel.- Specified by:
unsubscribed
in interfaceRedisPubSubListener<K,V>
- Parameters:
channel
- Channelcount
- Subscription count.
-
punsubscribed
public void punsubscribed(K pattern, long count)
Description copied from interface:RedisPubSubListener
Unsubscribed from a pattern.- Specified by:
punsubscribed
in interfaceRedisPubSubListener<K,V>
- Parameters:
pattern
- Channelcount
- Subscription count.
-
-