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()
IdGenerator
getName
in interface IdGenerator
public long newId()
IdGenerator
newId
in interface IdGenerator
public Instance.InstanceType getInstanceType()
Instance
getInstanceType
in interface Instance
public void destroy()
Instance
Copyright © 2013 Hazelcast, Inc.. All rights reserved.