at.gv.egovernment.moa.spss.server.transaction
Class TransactionIDGenerator

java.lang.Object
  |
  +--at.gv.egovernment.moa.spss.server.transaction.TransactionIDGenerator

public class TransactionIDGenerator
extends Object

A generator for unique transaction IDs.

The transaction IDs are of the form "-", where:

Assuming that it is highly unlikely that MOA servers are started at exactly the same time instant, the mechanism provided by this class should guarantee unique transaction IDs across multiple restarts and/or instances of the server.

Author:
Patrick Peck, Stefan Knirsch

Constructor Summary
TransactionIDGenerator()
           
 
Method Summary
static String nextID()
          Returns the next transaction ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionIDGenerator

public TransactionIDGenerator()
Method Detail

nextID

public static String nextID()
Returns the next transaction ID.
Returns:
The next transaction ID.