com.hazelcast.client.proxy
Class ClientIdGeneratorProxy

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

public class ClientIdGeneratorProxy
extends ClientProxy
implements IdGenerator


Constructor Summary
ClientIdGeneratorProxy(String serviceName, String objectId, IAtomicLong atomicLong)
           
 
Method Summary
 boolean init(long id)
           
 long newId()
           
protected  void onDestroy()
          Called before proxy is destroyed.
 String toString()
           
 
Methods inherited from class com.hazelcast.client.spi.ClientProxy
destroy, equals, getContext, getId, getName, getPartitionKey, getServiceName, hashCode, invoke, invoke, invoke, invokeInterruptibly, listen, listen, onInitialize, onShutdown, setContext, stopListening, throwExceptionIfNull, toData, toObject
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hazelcast.core.DistributedObject
destroy, getId, getName, getPartitionKey, getServiceName
 

Constructor Detail

ClientIdGeneratorProxy

public ClientIdGeneratorProxy(String serviceName,
                              String objectId,
                              IAtomicLong atomicLong)
Method Detail

init

public boolean init(long id)
Specified by:
init in interface IdGenerator

newId

public long newId()
Specified by:
newId in interface IdGenerator

onDestroy

protected void onDestroy()
Description copied from class: ClientProxy
Called before proxy is destroyed. Overriding implementations should clean/release resources created during initialization.

Overrides:
onDestroy in class ClientProxy

toString

public String toString()
Overrides:
toString in class Object


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