public class IdGeneratorProxyImpl extends FactoryAwareNamedProxy implements IdGeneratorProxy, DataSerializable
Instance.InstanceTypefactory, name| Constructor and Description |
|---|
IdGeneratorProxyImpl() |
IdGeneratorProxyImpl(String name,
FactoryImpl factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys this instance cluster-wide.
|
boolean |
equals(Object o) |
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.
|
int |
hashCode() |
long |
newId()
Generates and returns cluster-wide unique id.
|
String |
toString() |
getFactory, readData, setHazelcastInstance, setName, writeDataclone, finalize, getClass, notify, notifyAll, wait, wait, waitsetHazelcastInstancereadData, writeDatapublic IdGeneratorProxyImpl()
public IdGeneratorProxyImpl(String name, FactoryImpl factory)
public Object getId()
Instancepublic Instance.InstanceType getInstanceType()
InstancegetInstanceType in interface Instancepublic void destroy()
Instancepublic String getName()
IdGeneratorgetName in interface IdGeneratorgetName in class FactoryAwareNamedProxypublic long newId()
IdGeneratornewId in interface IdGeneratorCopyright © 2013 Hazelcast, Inc.. All rights reserved.