E
- message typepublic class ClientTopicProxy<E> extends ClientProxy implements ITopic<E>
ITopic
.name
Constructor and Description |
---|
ClientTopicProxy(String serviceName,
String objectId) |
Modifier and Type | Method and Description |
---|---|
String |
addMessageListener(MessageListener<E> listener) |
LocalTopicStats |
getLocalTopicStats() |
protected ClientMessage |
invokeOnPartition(ClientMessage req) |
protected <T> ClientDelegatingFuture<T> |
invokeOnPartitionAsync(ClientMessage clientMessage,
ClientMessageDecoder clientMessageDecoder) |
protected <T> T |
invokeOnPartitionInterruptibly(ClientMessage clientMessage) |
protected void |
onInitialize()
Called when proxy is created.
|
void |
publish(E message) |
boolean |
removeMessageListener(String registrationId) |
String |
toString() |
deregisterListener, destroy, equals, getClient, getContext, getDistributedObjectName, getId, getName, getPartitionKey, getSerializationService, getServiceName, hashCode, invoke, invoke, invokeOnPartition, invokeOnPartitionInterruptibly, onDestroy, onShutdown, postDestroy, preDestroy, registerListener, setContext, toData, toObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
destroy, getPartitionKey, getServiceName
public String addMessageListener(MessageListener<E> listener)
addMessageListener
in interface ITopic<E>
public boolean removeMessageListener(String registrationId)
removeMessageListener
in interface ITopic<E>
public LocalTopicStats getLocalTopicStats()
getLocalTopicStats
in interface ITopic<E>
protected void onInitialize()
ClientProxy
onInitialize
in class ClientProxy
protected ClientMessage invokeOnPartition(ClientMessage req)
protected <T> T invokeOnPartitionInterruptibly(ClientMessage clientMessage) throws InterruptedException
InterruptedException
protected <T> ClientDelegatingFuture<T> invokeOnPartitionAsync(ClientMessage clientMessage, ClientMessageDecoder clientMessageDecoder)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.