ca.uhn.hl7v2.util
Class MessageIDGenerator
java.lang.Object
ca.uhn.hl7v2.util.MessageIDGenerator
public class MessageIDGenerator
- extends java.lang.Object
Creates unique message IDs. IDs are stored in a file called /id_file for persistence
across JVM sessions. Note that if one day you run the JVM with a new working directory,
you must move or copy id_file into this directory so that new ID numbers will begin
with the last one used, rather than starting over again.
- Author:
- Neal Acharya
Method Summary |
static MessageIDGenerator |
getInstance()
Synchronized method used to return the single (static) instance of the class |
java.lang.String |
getNewID()
Synchronized method used to return the incremented id value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static MessageIDGenerator getInstance()
throws java.io.IOException
- Synchronized method used to return the single (static) instance of the class
- Throws:
java.io.IOException
getNewID
public java.lang.String getNewID()
throws java.io.IOException
- Synchronized method used to return the incremented id value
- Throws:
java.io.IOException
Copyright © 2001-2011 University Health Network. All Rights Reserved.