Firefish 0.5.10

gov.lbl.dsd.p2pio
Class TransactionID

java.lang.Object
  extended bygov.lbl.dsd.p2pio.MsgElement
      extended bygov.lbl.dsd.p2pio.TransactionID

public class TransactionID
extends MsgElement

A transaction (and each message) has a transaction ID, which is a universally unique identifier (UUID) [aka GUID in the Microsoft world]; All messages of a given transaction carry the same transaction ID; This implementation automatically generates 128 bit UUIDs in full conformance to the IETF standard.

Version:
$Revision: 1.7 $, $Date: 2004/02/09 21:10:21 $

Field Summary
static String UNKNOWN
           
 
Constructor Summary
TransactionID()
          Constructs a "random" transaction id.
TransactionID(String uuid)
           
TransactionID(org.doomdark.uuid.UUID uuid)
           
 
Method Summary
 boolean equals(Object other)
          Returns true if the other object is also a TransactionID with the same internal state.
 String getUUID()
           
 int hashCode()
           
 
Methods inherited from class gov.lbl.dsd.p2pio.MsgElement
toDOM, toString, toXOM
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final String UNKNOWN
See Also:
Constant Field Values
Constructor Detail

TransactionID

public TransactionID(String uuid)

TransactionID

public TransactionID(org.doomdark.uuid.UUID uuid)

TransactionID

public TransactionID()
Constructs a "random" transaction id.

Method Detail

getUUID

public String getUUID()

equals

public boolean equals(Object other)
Returns true if the other object is also a TransactionID with the same internal state.


hashCode

public int hashCode()

Firefish 0.5.10

Jump to the Firefish Homepage