com.hazelcast.client.spi
Class ClientProxy

java.lang.Object
  extended by com.hazelcast.client.spi.ClientProxy
All Implemented Interfaces:
DistributedObject

public abstract class ClientProxy
extends Object
implements DistributedObject

Author:
mdogan 5/16/13

Field Summary
protected  String instanceName
           
 
Constructor Summary
protected ClientProxy(String instanceName, String serviceName, String objectName)
           
 
Method Summary
 void destroy()
           
 boolean equals(Object o)
           
protected  ClientContext getContext()
           
 Object getId()
          Deprecated. 
 String getName()
           
 String getPartitionKey()
           
 String getServiceName()
           
 int hashCode()
           
protected
<T> T
invoke(com.hazelcast.client.ClientRequest req)
           
protected
<T> T
invoke(com.hazelcast.client.ClientRequest req, com.hazelcast.nio.Address address)
           
protected
<T> T
invoke(com.hazelcast.client.ClientRequest req, Object key)
           
protected  String listen(com.hazelcast.client.ClientRequest registrationRequest, EventHandler handler)
           
protected  String listen(com.hazelcast.client.ClientRequest registrationRequest, Object partitionKey, EventHandler handler)
           
protected abstract  void onDestroy()
           
protected  void onShutdown()
           
protected  void setContext(ClientContext context)
           
protected  boolean stopListening(com.hazelcast.client.BaseClientRemoveListenerRequest request, String registrationId)
           
protected  void throwExceptionIfNull(Object o)
           
protected  Data toData(Object o)
           
protected
<T> T
toObject(Object data)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instanceName

protected final String instanceName
Constructor Detail

ClientProxy

protected ClientProxy(String instanceName,
                      String serviceName,
                      String objectName)
Method Detail

listen

protected final String listen(com.hazelcast.client.ClientRequest registrationRequest,
                              Object partitionKey,
                              EventHandler handler)

listen

protected final String listen(com.hazelcast.client.ClientRequest registrationRequest,
                              EventHandler handler)

stopListening

protected final boolean stopListening(com.hazelcast.client.BaseClientRemoveListenerRequest request,
                                      String registrationId)

getContext

protected final ClientContext getContext()

setContext

protected final void setContext(ClientContext context)

getId

@Deprecated
public final Object getId()
Deprecated. 

Specified by:
getId in interface DistributedObject

getName

public final String getName()
Specified by:
getName in interface DistributedObject

getPartitionKey

public String getPartitionKey()
Specified by:
getPartitionKey in interface DistributedObject

getServiceName

public final String getServiceName()
Specified by:
getServiceName in interface DistributedObject

destroy

public final void destroy()
Specified by:
destroy in interface DistributedObject

onDestroy

protected abstract void onDestroy()

onShutdown

protected void onShutdown()

invoke

protected <T> T invoke(com.hazelcast.client.ClientRequest req,
                       Object key)

invoke

protected <T> T invoke(com.hazelcast.client.ClientRequest req)

invoke

protected <T> T invoke(com.hazelcast.client.ClientRequest req,
                       com.hazelcast.nio.Address address)

toData

protected Data toData(Object o)

toObject

protected <T> T toObject(Object data)

throwExceptionIfNull

protected void throwExceptionIfNull(Object o)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.