public abstract class ClientProxy extends Object implements DistributedObject
| Modifier | Constructor and Description |
|---|---|
protected |
ClientProxy(String serviceName,
String objectName) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys this object cluster-wide.
|
protected ClientContext |
getContext() |
Object |
getId()
Deprecated.
|
String |
getName()
Returns the unique name for this DistributedObject.
|
String |
getPartitionKey()
Returns the key of partition this DistributedObject is assigned to.
|
String |
getServiceName()
Returns the service name for this object.
|
protected String |
listen(Object registrationRequest,
EventHandler handler) |
protected String |
listen(Object registrationRequest,
Object partitionKey,
EventHandler handler) |
protected abstract void |
onDestroy() |
protected boolean |
stopListening(String registrationId) |
protected final String listen(Object registrationRequest, Object partitionKey, EventHandler handler)
protected final String listen(Object registrationRequest, EventHandler handler)
protected final boolean stopListening(String registrationId)
protected final ClientContext getContext()
@Deprecated public final Object getId()
DistributedObjectgetId in interface DistributedObjectpublic final String getName()
DistributedObjectgetName in interface DistributedObjectpublic String getPartitionKey()
DistributedObjectgetPartitionKey in interface DistributedObjectpublic final String getServiceName()
DistributedObjectgetServiceName in interface DistributedObjectpublic final void destroy()
DistributedObjectdestroy in interface DistributedObjectprotected abstract void onDestroy()
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.