Package org.infinispan.transaction.xa
Class GlobalTransaction
- java.lang.Object
-
- org.infinispan.transaction.xa.GlobalTransaction
-
- All Implemented Interfaces:
Cloneable
public class GlobalTransaction extends Object implements Cloneable
Uniquely identifies a transaction that spans all JVMs 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
. GlobalTransaction should be instantiated thoroughTransactionFactory
class, as their type depends on the runtime configuration.- Since:
- 4.0
- Author:
- Bela Ban Apr 12, 2003, Manik Surtani (manik@jboss.org), Mircea.Markus@jboss.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GlobalTransaction.Externalizer
-
Constructor Summary
Constructors Constructor Description GlobalTransaction(Address addr, boolean remote)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
boolean
equals(Object other)
Address
getAddress()
long
getId()
long
getInternalId()
XidImpl
getXid()
String
globalId()
Returns a simplified representation of the transaction.int
hashCode()
boolean
isRemote()
void
setAddress(Address address)
void
setId(long id)
void
setInternalId(long internalId)
void
setRemote(boolean remote)
void
setXid(XidImpl xid)
String
toString()
-
-
-
Constructor Detail
-
GlobalTransaction
public GlobalTransaction(Address addr, boolean remote)
-
-
Method Detail
-
getAddress
public Address getAddress()
-
getId
public long getId()
-
isRemote
public boolean isRemote()
-
setRemote
public void setRemote(boolean remote)
-
globalId
public final String globalId()
Returns a simplified representation of the transaction.
-
setId
public void setId(long id)
-
setAddress
public void setAddress(Address address)
-
getXid
public XidImpl getXid()
-
setXid
public void setXid(XidImpl xid)
-
getInternalId
public long getInternalId()
-
setInternalId
public void setInternalId(long internalId)
-
-