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()
DistributedObject
getId
in interface DistributedObject
public final String getName()
DistributedObject
getName
in interface DistributedObject
public String getPartitionKey()
DistributedObject
getPartitionKey
in interface DistributedObject
public final String getServiceName()
DistributedObject
getServiceName
in interface DistributedObject
public final void destroy()
DistributedObject
destroy
in interface DistributedObject
protected abstract void onDestroy()
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.