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.
|
boolean |
equals(Object o) |
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.
|
int |
hashCode() |
protected <T> T |
invoke(ClientRequest req) |
protected <T> T |
invoke(ClientRequest req,
Address address) |
protected <T> T |
invoke(ClientRequest req,
Object key) |
protected <T> T |
invokeInterruptibly(ClientRequest req,
Object key) |
protected String |
listen(ClientRequest registrationRequest,
EventHandler handler) |
protected String |
listen(ClientRequest registrationRequest,
Object partitionKey,
EventHandler handler) |
protected void |
onDestroy() |
protected void |
onShutdown() |
protected void |
setContext(ClientContext context) |
protected boolean |
stopListening(BaseClientRemoveListenerRequest request,
String registrationId) |
protected void |
throwExceptionIfNull(Object o) |
protected Data |
toData(Object o) |
protected <T> T |
toObject(Object data) |
protected final String listen(ClientRequest registrationRequest, Object partitionKey, EventHandler handler)
protected final String listen(ClientRequest registrationRequest, EventHandler handler)
protected final boolean stopListening(BaseClientRemoveListenerRequest request, String registrationId)
protected final ClientContext getContext()
protected final void setContext(ClientContext context)
@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 void onDestroy()
protected void onShutdown()
protected <T> T invoke(ClientRequest req, Object key)
protected <T> T invokeInterruptibly(ClientRequest req, Object key) throws InterruptedException
InterruptedExceptionprotected <T> T invoke(ClientRequest req)
protected <T> T invoke(ClientRequest req, Address address)
protected <T> T toObject(Object data)
protected void throwExceptionIfNull(Object o)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.