org.infinispan.transaction.xa
Class GlobalTransaction

java.lang.Object
  extended by org.infinispan.transaction.xa.GlobalTransaction
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
DeadlockDetectingGlobalTransaction

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 thorough GlobalTransactionFactory 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
static class GlobalTransaction.Externalizer
           
 
Field Summary
protected  Address addr
           
 
Method Summary
 Object clone()
           
 boolean equals(Object other)
           
 Address getAddress()
           
 long getId()
           
 int hashCode()
           
 boolean isRemote()
           
 void setAddress(Address address)
           
 void setId(long id)
           
 void setRemote(boolean remote)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

addr

protected transient Address addr
Method Detail

getAddress

public Address getAddress()

getId

public long getId()

isRemote

public boolean isRemote()

setRemote

public void setRemote(boolean remote)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

setId

public void setId(long id)

setAddress

public void setAddress(Address address)

clone

public Object clone()
Overrides:
clone in class Object

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.