public class ClientIdGeneratorProxy extends ClientProxy implements IdGenerator
Constructor and Description |
---|
ClientIdGeneratorProxy(String serviceName,
String objectId,
IAtomicLong atomicLong) |
Modifier and Type | Method and Description |
---|---|
boolean |
init(long id)
Try to initialize this IdGenerator instance with given id.
|
long |
newId()
Generates and returns cluster-wide unique id.
|
protected void |
onDestroy() |
String |
toString() |
destroy, equals, getContext, getId, getName, getPartitionKey, getServiceName, hashCode, invoke, invoke, invoke, invokeInterruptibly, listen, listen, onShutdown, setContext, stopListening, throwExceptionIfNull, toData, toObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
destroy, getId, getName, getPartitionKey, getServiceName
public ClientIdGeneratorProxy(String serviceName, String objectId, IAtomicLong atomicLong)
public boolean init(long id)
IdGenerator
init
in interface IdGenerator
public long newId()
IdGenerator
newId
in interface IdGenerator
protected void onDestroy()
onDestroy
in class ClientProxy
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.