public class RedisPubSubStore extends Object implements PubSubStore
DISPATCH, JOIN, LEAVE| Constructor and Description |
|---|
RedisPubSubStore(redis.clients.jedis.Jedis pub,
redis.clients.jedis.Jedis sub,
Long nodeId,
JsonSupport jsonSupport) |
| Modifier and Type | Method and Description |
|---|---|
void |
publish(String name,
PubSubMessage msg) |
void |
shutdown() |
<T extends PubSubMessage> |
subscribe(String name,
PubSubListener<T> listener,
Class<T> clazz) |
void |
unsubscribe(String name) |
public RedisPubSubStore(redis.clients.jedis.Jedis pub,
redis.clients.jedis.Jedis sub,
Long nodeId,
JsonSupport jsonSupport)
public void publish(String name, PubSubMessage msg)
publish in interface PubSubStorepublic <T extends PubSubMessage> void subscribe(String name, PubSubListener<T> listener, Class<T> clazz)
subscribe in interface PubSubStorepublic void unsubscribe(String name)
unsubscribe in interface PubSubStorepublic void shutdown()
shutdown in interface PubSubStoreCopyright © 2012–2013. All rights reserved.