public abstract class ClientProxy extends Object implements DistributedObject
| Modifier | Constructor and Description |
|---|---|
protected |
ClientProxy(String serviceName,
String objectName) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
deregisterListener(String registrationId) |
void |
destroy() |
boolean |
equals(Object o) |
protected HazelcastClientInstanceImpl |
getClient() |
protected ClientContext |
getContext() |
Object |
getId()
Deprecated.
|
String |
getName() |
String |
getPartitionKey() |
String |
getServiceName() |
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 <T> T |
invokeOnPartition(ClientRequest req,
int partitionId) |
protected void |
onDestroy()
Called before proxy is destroyed.
|
protected void |
onInitialize()
Called when proxy is created.
|
protected void |
onShutdown()
Called before client shutdown.
|
protected String |
registerListener(BaseClientAddListenerRequest addRequest,
BaseClientRemoveListenerRequest removeRequest,
EventHandler handler) |
protected void |
setContext(ClientContext context) |
protected void |
throwExceptionIfNull(Object o) |
protected Data |
toData(Object o) |
protected <T> T |
toObject(Object data) |
protected final String registerListener(BaseClientAddListenerRequest addRequest, BaseClientRemoveListenerRequest removeRequest, EventHandler handler)
protected final boolean deregisterListener(String registrationId)
protected final ClientContext getContext()
protected final HazelcastClientInstanceImpl getClient()
protected final void setContext(ClientContext context)
@Deprecated public final Object getId()
public final String getName()
getName in interface DistributedObjectpublic String getPartitionKey()
getPartitionKey in interface DistributedObjectpublic final String getServiceName()
getServiceName in interface DistributedObjectpublic final void destroy()
destroy in interface DistributedObjectprotected void onInitialize()
protected void onDestroy()
protected void onShutdown()
protected <T> T invoke(ClientRequest req, Object key)
protected <T> T invokeOnPartition(ClientRequest req, int partitionId)
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 © 2016 Hazelcast, Inc.. All Rights Reserved.