public abstract class TopicProxySupport extends AbstractDistributedObject<TopicService> implements InitializingObject
PARTITIONING_STRATEGY
Constructor and Description |
---|
TopicProxySupport(String name,
NodeEngine nodeEngine,
TopicService service) |
Modifier and Type | Method and Description |
---|---|
String |
addMessageListenerInternal(MessageListener listener) |
LocalTopicStats |
getLocalTopicStatsInternal() |
String |
getName()
Returns the unique name for this DistributedObject.
|
String |
getServiceName()
Returns the service name for this object.
|
void |
initialize() |
void |
publishInternal(Object message)
Publishes the message and increases the local statistics
for the number of published messages.
|
boolean |
removeMessageListenerInternal(String registrationId) |
destroy, equals, getDistributedObjectName, getNameAsPartitionAwareData, getNodeEngine, getOperationService, getPartitionId, getPartitionKey, getService, hashCode, invalidate, invokeOnPartition, postDestroy, preDestroy, throwNotActiveException, toData, toString
public TopicProxySupport(String name, NodeEngine nodeEngine, TopicService service)
public void initialize()
initialize
in interface InitializingObject
public LocalTopicStats getLocalTopicStatsInternal()
public void publishInternal(Object message)
message
- the message to be publishedpublic String addMessageListenerInternal(MessageListener listener)
public boolean removeMessageListenerInternal(String registrationId)
public String getServiceName()
DistributedObject
getServiceName
in interface DistributedObject
getServiceName
in class AbstractDistributedObject<TopicService>
public String getName()
DistributedObject
DistributedObjectUtil.getName(DistributedObject)
because this might be also a PrefixedDistributedObject
.getName
in interface DistributedObject
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.