Class GlobalTransaction
java.lang.Object
org.infinispan.transaction.xa.GlobalTransaction
- All Implemented Interfaces:
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 thorough
. GlobalTransaction should be instantiated thorough
TransactionFactory
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
-
Constructor Summary
ConstructorsConstructorDescriptionGlobalTransaction
(Address addr, boolean remote) GlobalTransaction
(Address addr, boolean remote, boolean clientTx) -
Method Summary
Modifier and TypeMethodDescriptionchangeAddress
(Address address) clone()
boolean
long
getId()
long
getXid()
final String
globalId()
Returns a simplified representation of the transaction.int
hashCode()
boolean
boolean
isRemote()
void
setInternalId
(long internalId) void
setRemote
(boolean remote) void
toString()
-
Constructor Details
-
GlobalTransaction
-
GlobalTransaction
-
-
Method Details
-
getAddress
-
getId
public long getId() -
getRequestUUID
-
getXid
-
getInternalId
@ProtoField(3) public long getInternalId() -
isClientTransaction
@ProtoField(4) public boolean isClientTransaction() -
isRemote
public boolean isRemote() -
setRemote
public void setRemote(boolean remote) -
changeAddress
-
hashCode
-
equals
-
globalId
Returns a simplified representation of the transaction. -
setXid
-
setInternalId
public void setInternalId(long internalId) -
clone
-
toString
-