public class HazelcastPubSubStore extends Object implements PubSubStore
| Constructor and Description |
|---|
HazelcastPubSubStore(com.hazelcast.core.HazelcastInstance hazelcastPub,
com.hazelcast.core.HazelcastInstance hazelcastSub,
Long nodeId) |
| Modifier and Type | Method and Description |
|---|---|
void |
publish(PubSubType type,
PubSubMessage msg) |
void |
shutdown() |
<T extends PubSubMessage> |
subscribe(PubSubType type,
PubSubListener<T> listener,
Class<T> clazz) |
void |
unsubscribe(PubSubType type) |
public HazelcastPubSubStore(com.hazelcast.core.HazelcastInstance hazelcastPub,
com.hazelcast.core.HazelcastInstance hazelcastSub,
Long nodeId)
public void publish(PubSubType type, PubSubMessage msg)
publish in interface PubSubStorepublic <T extends PubSubMessage> void subscribe(PubSubType type, PubSubListener<T> listener, Class<T> clazz)
subscribe in interface PubSubStorepublic void unsubscribe(PubSubType type)
unsubscribe in interface PubSubStorepublic void shutdown()
shutdown in interface PubSubStoreCopyright © 2012–2021. All rights reserved.