public class LegacyGenerator extends Object implements IDGenerator.Ordered
IDGenerator
interface and the old
MessageIDGenerator
class. Only use this implementation if you
absolutely must stick to legacy implementation. It is recommended to switch
to FileBasedHiLoGenerator
.IDGenerator.Ordered, IDGenerator.OrderedSupport
Constructor and Description |
---|
LegacyGenerator() |
Modifier and Type | Method and Description |
---|---|
String |
getID()
Generates and returns a new ID.
|
long |
getIncrement() |
void |
reset() |
public LegacyGenerator()
public String getID() throws IOException
IDGenerator
getID
in interface IDGenerator
IOException
public void reset()
reset
in interface IDGenerator.Ordered
public long getIncrement()
getIncrement
in interface IDGenerator.Ordered
Copyright © 2001–2017 University Health Network. All rights reserved.