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)
RedisPubSubListenermessage in interface RedisPubSubListener<V>channel - Channel.message - Message.public void message(String pattern, String channel, V message)
RedisPubSubListenermessage in interface RedisPubSubListener<V>pattern - Pattern.channel - Channel.message - Message.public void subscribed(String channel, long count)
RedisPubSubListenersubscribed in interface RedisPubSubListener<V>channel - Channelcount - Subscription count.public void psubscribed(String pattern, long count)
RedisPubSubListenerpsubscribed in interface RedisPubSubListener<V>pattern - Pattern.count - Subscription count.public void unsubscribed(String channel, long count)
RedisPubSubListenerunsubscribed in interface RedisPubSubListener<V>channel - Channelcount - Subscription count.public void punsubscribed(String pattern, long count)
RedisPubSubListenerpunsubscribed in interface RedisPubSubListener<V>pattern - Channelcount - Subscription count.Copyright © 2014–2015. All rights reserved.