public abstract class ClientProxy extends Object implements DistributedObject
Modifier | Constructor and Description |
---|---|
protected |
ClientProxy(String serviceName,
String name) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
deregisterListener(String registrationId) |
void |
destroy()
Destroys this object cluster-wide.
|
boolean |
equals(Object o) |
protected HazelcastClientInstanceImpl |
getClient() |
protected ClientContext |
getContext() |
Object |
getId()
Deprecated.
|
String |
getName()
Returns the unique name for this DistributedObject.
|
String |
getPartitionKey()
Returns the key of the partition that this DistributedObject is assigned to.
|
String |
getServiceName()
Returns the service name for this object.
|
int |
hashCode() |
protected <T> T |
invoke(ClientMessage clientMessage) |
protected <T> T |
invoke(ClientMessage clientMessage,
Object key) |
protected <T> T |
invokeOnPartition(ClientMessage clientMessage,
int partitionId) |
protected <T> T |
invokeOnPartitionInterruptibly(ClientMessage clientMessage,
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(ListenerMessageCodec codec,
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 name
protected final String registerListener(ListenerMessageCodec codec, EventHandler handler)
protected final boolean deregisterListener(String registrationId)
protected final ClientContext getContext()
protected final void setContext(ClientContext context)
protected final HazelcastClientInstanceImpl getClient()
@Deprecated public final Object getId()
public final String getName()
DistributedObject
getName
in interface DistributedObject
public String getPartitionKey()
DistributedObject
IAtomicLong
. For a partitioned data structure like an IMap
,
the returned value will not be null, but otherwise undefined.getPartitionKey
in interface DistributedObject
public final String getServiceName()
DistributedObject
getServiceName
in interface DistributedObject
public final void destroy()
DistributedObject
destroy
in interface DistributedObject
protected void onInitialize()
protected void onDestroy()
protected void onShutdown()
protected <T> T invoke(ClientMessage clientMessage, Object key)
protected <T> T invokeOnPartition(ClientMessage clientMessage, int partitionId)
protected <T> T invokeOnPartitionInterruptibly(ClientMessage clientMessage, int partitionId) throws InterruptedException
InterruptedException
protected <T> T invoke(ClientMessage clientMessage)
protected <T> T toObject(Object data)
protected void throwExceptionIfNull(Object o)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.