|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.spi.AbstractDistributedObject<ReliableTopicService>
com.hazelcast.topic.impl.reliable.ReliableTopicProxy<E>
E - public class ReliableTopicProxy<E>
The serverside ITopic implementation for reliable topics.
| Field Summary | |
|---|---|
static int |
INITIAL_BACKOFF_MS
|
static int |
MAX_BACKOFF
|
| Fields inherited from class com.hazelcast.spi.AbstractDistributedObject |
|---|
PARTITIONING_STRATEGY |
| Constructor Summary | |
|---|---|
ReliableTopicProxy(String name,
NodeEngine nodeEngine,
ReliableTopicService service,
ReliableTopicConfig topicConfig)
|
|
| Method Summary | |
|---|---|
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 |
String |
getServiceName()
Returns the service name for this object. |
protected void |
postDestroy()
|
void |
publish(E payload)
Publishes the message to all subscribers of this topic |
boolean |
removeMessageListener(String registrationId)
Stops receiving messages for the given message listener. |
| Methods inherited from class com.hazelcast.spi.AbstractDistributedObject |
|---|
destroy, equals, getId, getNameAsPartitionAwareData, getNodeEngine, getOperationService, getPartitionKey, getService, hashCode, invalidate, throwNotActiveException, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.hazelcast.core.DistributedObject |
|---|
destroy, getId, getPartitionKey |
| Field Detail |
|---|
public static final int MAX_BACKOFF
public static final int INITIAL_BACKOFF_MS
| Constructor Detail |
|---|
public ReliableTopicProxy(String name,
NodeEngine nodeEngine,
ReliableTopicService service,
ReliableTopicConfig topicConfig)
| Method Detail |
|---|
public String getServiceName()
DistributedObject
getServiceName in interface DistributedObjectgetServiceName in class AbstractDistributedObject<ReliableTopicService>public String getName()
ITopic
getName in interface DistributedObjectgetName in interface ITopic<E>public void publish(E payload)
ITopic
publish in interface ITopic<E>payload - the message to publish to all subscribers of this topicpublic String addMessageListener(MessageListener<E> listener)
ITopic
addMessageListener in interface ITopic<E>listener - the MessageListener to add.
public boolean removeMessageListener(String registrationId)
ITopic
removeMessageListener in interface ITopic<E>registrationId - Id of listener registration.
protected void postDestroy()
postDestroy in class AbstractDistributedObject<ReliableTopicService>public LocalTopicStats getLocalTopicStats()
ITopic
getLocalTopicStats in interface ITopic<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||