public interface TopicCodecTemplate
Modifier and Type | Method and Description |
---|---|
Object |
addMessageListener(String name,
boolean localOnly)
Subscribes to this topic.
|
void |
publish(String name,
Data message)
Publishes the message to all subscribers of this topic
|
Object |
removeMessageListener(String name,
String registrationId)
Stops receiving messages for the given message listener.If the given listener already removed, this method does nothing.
|
void publish(String name, Data message)
name
- Name of the Topicmessage
- The message to publish to all subscribers of this topicObject addMessageListener(String name, boolean localOnly)
name
- Name of the TopiclocalOnly
- if true listens only local events on registered memberObject removeMessageListener(String name, String registrationId)
name
- Name of the TopicregistrationId
- Id of listener registration.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.