org.jboss.cache
Class GlobalTransaction
java.lang.Object
org.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
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
GlobalTransaction
public GlobalTransaction()
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