V
- Value type.public class RedisPubSubAdapter<V> extends Object implements RedisPubSubListener<V>
RedisPubSubListener
callback methods.Constructor and Description |
---|
RedisPubSubAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
message(String pattern,
String channel,
V message)
Message received from a pattern subscription.
|
void |
message(String channel,
V message)
Message received from a channel subscription.
|
void |
psubscribed(String pattern,
long count)
Subscribed to a pattern.
|
void |
punsubscribed(String pattern,
long count)
Unsubscribed from a pattern.
|
void |
subscribed(String channel,
long count)
Subscribed to a channel.
|
void |
unsubscribed(String channel,
long count)
Unsubscribed from a channel.
|
public void message(String channel, V message)
RedisPubSubListener
message
in interface RedisPubSubListener<V>
channel
- Channel.message
- Message.public void message(String pattern, String channel, V message)
RedisPubSubListener
message
in interface RedisPubSubListener<V>
pattern
- Pattern.channel
- Channel.message
- Message.public void subscribed(String channel, long count)
RedisPubSubListener
subscribed
in interface RedisPubSubListener<V>
channel
- Channelcount
- Subscription count.public void psubscribed(String pattern, long count)
RedisPubSubListener
psubscribed
in interface RedisPubSubListener<V>
pattern
- Pattern.count
- Subscription count.public void unsubscribed(String channel, long count)
RedisPubSubListener
unsubscribed
in interface RedisPubSubListener<V>
channel
- Channelcount
- Subscription count.public void punsubscribed(String pattern, long count)
RedisPubSubListener
punsubscribed
in interface RedisPubSubListener<V>
pattern
- Channelcount
- Subscription count.Copyright © 2014. All rights reserved.