org.infinispan.transaction.xa.recovery
Class RecoveryAwareDldGlobalTransaction

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

public class RecoveryAwareDldGlobalTransaction
extends DldGlobalTransaction
implements RecoverableTransactionIdentifier

DldGlobalTransaction that also holds xid information, required for recovery. The purpose of this class is to avoid the serialization of Xid objects over the wire in the case recovery is not enabled.

Since:
5.0
Author:
Mircea.Markus@jboss.com

Nested Class Summary
static class RecoveryAwareDldGlobalTransaction.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.DldGlobalTransaction
coinToss, localLockIntention, locksAtOrigin, remoteLockIntention
 
Fields inherited from class org.infinispan.transaction.xa.GlobalTransaction
addr, id
 
Constructor Summary
RecoveryAwareDldGlobalTransaction()
           
RecoveryAwareDldGlobalTransaction(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.DldGlobalTransaction
equals, getCoinToss, getLockIntention, getLocksHeldAtOrigin, getRemoteLockIntention, hashCode, hasLockAtOrigin, setCoinToss, setLockIntention, setLocksHeldAtOrigin, setRemoteLockIntention, wouldLose
 
Methods inherited from class org.infinispan.transaction.xa.GlobalTransaction
clone, getAddress, getId, globalId, isRemote, setAddress, setId, setRemote
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RecoveryAwareDldGlobalTransaction

public RecoveryAwareDldGlobalTransaction()

RecoveryAwareDldGlobalTransaction

public RecoveryAwareDldGlobalTransaction(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 DldGlobalTransaction

-->

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