22 #ifndef HAZELCAST_TOPIC 
   23 #define HAZELCAST_TOPIC 
   25 #include "hazelcast/client/proxy/ITopicImpl.h" 
   26 #include "hazelcast/client/topic/TopicEventHandler.h" 
   45         class ITopic : 
public proxy::ITopicImpl {
 
   56                 proxy::ITopicImpl::publish(toData<E>(message));
 
   85                 topic::TopicEventHandler<E, L> *topicEventHandler = 
new topic::TopicEventHandler<E, L>(getName(), context->getClusterService(), context->getSerializationService(), listener);
 
   86                 return proxy::ITopicImpl::addMessageListener(topicEventHandler);
 
   98                 return proxy::ITopicImpl::removeMessageListener(registrationId);
 
  102             ITopic(
const std::string& instanceName, spi::ClientContext *context)
 
  103             : proxy::ITopicImpl(instanceName, context) {
 
  109 #endif //HAZELCAST_TOPIC 
void publish(const E &message)
Publishes the message to all subscribers of this topic. 
Definition: ITopic.h:55
 
Hazelcast provides distribution mechanism for publishing messages that are delivered to multiple subs...
Definition: ITopic.h:45
 
bool removeMessageListener(const std::string ®istrationId)
Stops receiving messages for the given message listener. 
Definition: ITopic.h:97
 
std::string addMessageListener(L &listener)
Subscribes to this topic. 
Definition: ITopic.h:84
 
Hazelcast Client enables you to do all Hazelcast operations without being a member of the cluster...
Definition: HazelcastClient.h:410