public interface ITopic<E> extends DistributedObject
Modifier and Type | Method and Description |
---|---|
String |
addMessageListener(MessageListener<E> listener)
Subscribes to this topic.
|
LocalTopicStats |
getLocalTopicStats()
Returns statistics about this topic, like total number of publishes/receives
|
String |
getName()
Returns the name of this ITopic instance
|
void |
publish(E message)
Publishes the message to all subscribers of this topic
|
boolean |
removeMessageListener(String registrationId)
Stops receiving messages for the given message listener.
|
destroy, getId, getPartitionKey, getServiceName
String getName()
getName
in interface DistributedObject
void publish(E message)
message
- the message to publish to all subscribers of this topicString addMessageListener(MessageListener<E> listener)
listener
- boolean removeMessageListener(String registrationId)
registrationId
- Id of listener registration.LocalTopicStats getLocalTopicStats()
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.