Package ca.uhn.hl7v2.util.idgenerator
Class LegacyGenerator
java.lang.Object
ca.uhn.hl7v2.util.idgenerator.LegacyGenerator
- All Implemented Interfaces:
IDGenerator,IDGenerator.Ordered
Bridge between the
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.- Author:
- Christian Ohr
-
Nested Class Summary
Nested classes/interfaces inherited from interface ca.uhn.hl7v2.util.idgenerator.IDGenerator
IDGenerator.Ordered, IDGenerator.OrderedSupport -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LegacyGenerator
public LegacyGenerator()
-
-
Method Details
-
getID
Description copied from interface:IDGeneratorGenerates and returns a new ID. Note: This method must be implemented to be thread-safe.- Specified by:
getIDin interfaceIDGenerator- Returns:
- a new ID.
- Throws:
IOException
-
reset
- Specified by:
resetin interfaceIDGenerator.Ordered
-
getIncrement
- Specified by:
getIncrementin interfaceIDGenerator.Ordered
-