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

Constructor Summary
protected ClientProxy(String serviceName, Object objectId)
           
 
Method Summary
 void destroy()
          Destroys this object cluster-wide.
protected  ClientContext getContext()
           
 Object getId()
          Returns the unique id for this object.
 String getServiceName()
          Returns the service name for this object.
protected  String listen(Object registrationRequest, Data key, EventHandler handler)
           
protected  String listen(Object registrationRequest, EventHandler handler)
           
protected abstract  void onDestroy()
           
protected  boolean stopListening(String registrationId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hazelcast.core.DistributedObject
getName
 

Constructor Detail

ClientProxy

protected ClientProxy(String serviceName,
                      Object objectId)
Method Detail

listen

protected final String listen(Object registrationRequest,
                              Data key,
                              EventHandler handler)

listen

protected final String listen(Object registrationRequest,
                              EventHandler handler)

stopListening

protected final boolean stopListening(String registrationId)

getContext

protected final ClientContext getContext()

getId

public final Object getId()
Description copied from interface: DistributedObject
Returns the unique id for this object.

Specified by:
getId in interface DistributedObject
Returns:
id the of this instance

getServiceName

public final String getServiceName()
Description copied from interface: DistributedObject
Returns the service name for this object.

Specified by:
getServiceName in interface DistributedObject

destroy

public final void destroy()
Description copied from interface: DistributedObject
Destroys this object cluster-wide. Clears and releases all resources for this object.

Specified by:
destroy in interface DistributedObject

onDestroy

protected abstract void onDestroy()


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