public class IdGeneratorClientProxy extends Object implements IdGenerator
Instance.InstanceType| Constructor and Description |
|---|
IdGeneratorClientProxy(HazelcastClient hazelcastClient,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys this instance cluster-wide.
|
Object |
getId()
Returns the unique id for this instance.
|
Instance.InstanceType |
getInstanceType()
Returns instance type such as map, set, list, lock, topic, multimap, id generator
|
String |
getName()
Returns the name of this Id Generator instance.
|
long |
newId()
Generates and returns cluster-wide unique id.
|
public IdGeneratorClientProxy(HazelcastClient hazelcastClient, String name)
public String getName()
IdGeneratorgetName in interface IdGeneratorpublic long newId()
IdGeneratornewId in interface IdGeneratorpublic Instance.InstanceType getInstanceType()
InstancegetInstanceType in interface Instancepublic void destroy()
InstanceCopyright © 2013 Hazelcast, Inc.. All rights reserved.