org.jboss.cache
Class GlobalTransaction

java.lang.Object
  extended byorg.jboss.cache.GlobalTransaction
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class GlobalTransaction
extends java.lang.Object
implements java.io.Externalizable

Uniquely identifies a transaction that spans all nodes in a cluster. This is used when replicating all modifications in a transaction; the PREPARE and COMMIT (or ROLLBACK) messages have to have a unique identifier to associate the changes with

See Also:
Serialized Form

Constructor Summary
GlobalTransaction()
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
static GlobalTransaction (src) create(Address addr)
           
 boolean equals(java.lang.Object other)
           
 java.lang.Object getAddress()
           
 long getId()
           
 int hashCode()
           
 void readExternal(java.io.ObjectInput in)
           
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GlobalTransaction

public GlobalTransaction()
Method Detail

create

public static GlobalTransaction (src)  create(Address addr)

getAddress

public java.lang.Object getAddress()

getId

public long getId()

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object other)

compareTo

public int compareTo(java.lang.Object o)

toString

public java.lang.String toString()

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException