public class ClientTopicProxy<E> extends ClientProxy implements ITopic<E>
| Constructor and Description | 
|---|
ClientTopicProxy(String serviceName,
                String objectId)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
addMessageListener(MessageListener<E> listener)
Subscribes to this topic. 
 | 
LocalTopicStats | 
getLocalTopicStats()
Returns statistics of this topic,like total number of publishes/receives 
 | 
protected <T> T | 
invoke(ClientRequest req)  | 
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. 
 | 
String | 
toString()  | 
destroy, equals, getContext, getId, getName, getPartitionKey, getServiceName, hashCode, invoke, invoke, invokeInterruptibly, listen, listen, onDestroy, onInitialize, onShutdown, setContext, stopListening, throwExceptionIfNull, toData, toObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitdestroy, getId, getPartitionKey, getServiceNamepublic void publish(E message)
ITopicpublic String addMessageListener(MessageListener<E> listener)
ITopicaddMessageListener in interface ITopic<E>public boolean removeMessageListener(String registrationId)
ITopicremoveMessageListener in interface ITopic<E>registrationId - Id of listener registration.public LocalTopicStats getLocalTopicStats()
ITopicgetLocalTopicStats in interface ITopic<E>protected <T> T invoke(ClientRequest req)
invoke in class ClientProxyCopyright © 2014 Hazelcast, Inc.. All Rights Reserved.