E - message typepublic class ClientReliableTopicProxy<E> extends ClientProxy implements ITopic<E>
ITopic.
Unlike other topics, a reliable topic has its own Ringbuffer to store events and
has its own executor to process events.name| Constructor and Description |
|---|
ClientReliableTopicProxy(String objectId,
ClientContext context,
HazelcastClientInstanceImpl client) |
| Modifier and Type | Method and Description |
|---|---|
String |
addMessageListener(MessageListener<E> listener) |
LocalTopicStats |
getLocalTopicStats() |
Ringbuffer |
getRingbuffer() |
boolean |
isListenerCancelled(String registrationID) |
protected void |
postDestroy()
Called after proxy is destroyed.
|
void |
publish(E payload) |
boolean |
removeMessageListener(String registrationId) |
String |
toString() |
deregisterListener, destroy, destroyLocally, destroyRemotely, equals, getClient, getConnectedServerVersion, getContext, getDistributedObjectName, getId, getName, getPartitionKey, getSerializationService, getServiceName, hashCode, invoke, invoke, invokeOnAddress, invokeOnPartition, invokeOnPartitionInterruptibly, onDestroy, onInitialize, onShutdown, preDestroy, registerListener, setContext, toData, toObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitdestroy, getPartitionKey, getServiceNamepublic ClientReliableTopicProxy(String objectId, ClientContext context, HazelcastClientInstanceImpl client)
public String addMessageListener(MessageListener<E> listener)
addMessageListener in interface ITopic<E>public boolean isListenerCancelled(String registrationID)
public boolean removeMessageListener(String registrationId)
removeMessageListener in interface ITopic<E>public LocalTopicStats getLocalTopicStats()
getLocalTopicStats in interface ITopic<E>public Ringbuffer getRingbuffer()
protected void postDestroy()
ClientProxypostDestroy in class ClientProxyCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.