org.jboss.cache.transaction
Class GlobalTransaction
java.lang.Object
org.jboss.cache.transaction.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
- Version:
- $Revision: 1.2 $
- Author:
- Bela Ban Apr 12, 2003, Manik Surtani (manik@jboss.org)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
GlobalTransaction
public GlobalTransaction()
- empty ctor used by externalization
create
public static GlobalTransaction create(org.jgroups.Address addr)
getAddress
public java.lang.Object getAddress()
setAddress
public void setAddress(org.jgroups.Address address)
getId
public long getId()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
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
isRemote
public boolean isRemote()
- Returns:
- Returns the remote.
setRemote
public void setRemote(boolean remote)
- Parameters:
remote
- The remote to set.
setId
public void setId(long id)