public class ClientIdGeneratorProxy extends ClientProxy implements IdGenerator
name| Constructor and Description |
|---|
ClientIdGeneratorProxy(String serviceName,
String objectId,
IAtomicLong blockGenerator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
init(long id)
Try to initialize this IdGenerator instance with the given id.
|
long |
newId()
Generates and returns a cluster-wide unique id.
|
protected void |
onDestroy()
Called before proxy is destroyed.
|
String |
toString() |
deregisterListener, destroy, equals, getClient, getContext, getId, getName, getPartitionKey, getServiceName, hashCode, invoke, invoke, invokeOnPartition, invokeOnPartitionInterruptibly, onInitialize, onShutdown, registerListener, setContext, throwExceptionIfNull, toData, toObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitdestroy, getName, getPartitionKey, getServiceNamepublic ClientIdGeneratorProxy(String serviceName, String objectId, IAtomicLong blockGenerator)
public boolean init(long id)
IdGeneratorinit in interface IdGeneratorpublic long newId()
IdGeneratornewId in interface IdGeneratorprotected void onDestroy()
ClientProxyonDestroy in class ClientProxyCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.