org.infinispan.transaction.xa.recovery
Class RecoveryAwareGlobalTransaction

java.lang.Object
  extended by org.infinispan.transaction.xa.GlobalTransaction
      extended by org.infinispan.transaction.xa.recovery.RecoveryAwareGlobalTransaction
All Implemented Interfaces:
Cloneable, RecoverableTransactionIdentifier

public class RecoveryAwareGlobalTransaction
extends GlobalTransaction
implements RecoverableTransactionIdentifier

GlobalTransaction that also holds xid information, required for recovery.

Since:
5.0
Author:
Mircea.Markus@jboss.com
See Also:
RecoveryAwareDldGlobalTransaction

Nested Class Summary
static class RecoveryAwareGlobalTransaction.Externalizer
           
 
Nested classes/interfaces inherited from class org.infinispan.transaction.xa.GlobalTransaction
GlobalTransaction.AbstractGlobalTxExternalizer<T extends GlobalTransaction>
 
Field Summary
 
Fields inherited from class org.infinispan.transaction.xa.GlobalTransaction
addr
 
Constructor Summary
RecoveryAwareGlobalTransaction()
           
RecoveryAwareGlobalTransaction(Address addr, boolean remote)
           
 
Method Summary
 long getInternalId()
           
 Xid getXid()
           
 void setInternalId(long internalId)
           
 void setXid(Xid xid)
           
 String toString()
           
 
Methods inherited from class org.infinispan.transaction.xa.GlobalTransaction
clone, equals, getAddress, getId, hashCode, isRemote, setAddress, setId, setRemote
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RecoveryAwareGlobalTransaction

public RecoveryAwareGlobalTransaction()

RecoveryAwareGlobalTransaction

public RecoveryAwareGlobalTransaction(Address addr,
                                      boolean remote)
Method Detail

getXid

public Xid getXid()
Specified by:
getXid in interface RecoverableTransactionIdentifier

setXid

public void setXid(Xid xid)
Specified by:
setXid in interface RecoverableTransactionIdentifier

getInternalId

public long getInternalId()
Specified by:
getInternalId in interface RecoverableTransactionIdentifier

setInternalId

public void setInternalId(long internalId)
Specified by:
setInternalId in interface RecoverableTransactionIdentifier

toString

public String toString()
Overrides:
toString in class GlobalTransaction

-->

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