- Type Parameters:
K- Key type.V- Value type.
- All Known Implementing Classes:
RedisPubSubAdapter
public interface RedisPubSubListener<K,V>
Interface for Redis Pub/Sub listeners.
- Author:
- Will Glozer
-
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.
-
Method Details
-
message
Message received from a channel subscription.- Parameters:
channel- Channel.message- Message.
-
message
Message received from a pattern subscription.- Parameters:
pattern- Patternchannel- Channelmessage- Message
-
subscribed
Subscribed to a channel.- Parameters:
channel- Channelcount- Subscription count.
-
psubscribed
Subscribed to a pattern.- Parameters:
pattern- Pattern.count- Subscription count.
-
unsubscribed
Unsubscribed from a channel.- Parameters:
channel- Channelcount- Subscription count.
-
punsubscribed
Unsubscribed from a pattern.- Parameters:
pattern- Channelcount- Subscription count.
-