public class IdGeneratorProxyImpl extends FactoryAwareNamedProxy implements IdGeneratorProxy, DataSerializable
Instance.InstanceType
factory, 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, writeData
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
setHazelcastInstance
readData, writeData
public IdGeneratorProxyImpl()
public IdGeneratorProxyImpl(String name, FactoryImpl factory)
public Object getId()
Instance
public Instance.InstanceType getInstanceType()
Instance
getInstanceType
in interface Instance
public void destroy()
Instance
public String getName()
IdGenerator
getName
in interface IdGenerator
getName
in class FactoryAwareNamedProxy
public long newId()
IdGenerator
newId
in interface IdGenerator
Copyright © 2013 Hazelcast, Inc.. All rights reserved.