Package org.infinispan.transaction.xa
Class LocalXaTransaction
- java.lang.Object
-
- org.infinispan.transaction.impl.AbstractCacheTransaction
-
- org.infinispan.transaction.impl.LocalTransaction
-
- org.infinispan.transaction.xa.LocalXaTransaction
-
- All Implemented Interfaces:
CacheTransaction
- Direct Known Subclasses:
RecoveryAwareLocalTransaction
public class LocalXaTransaction extends org.infinispan.transaction.impl.LocalTransaction
LocalTransaction
implementation to be used withTransactionXaAdapter
.- Since:
- 5.0
- Author:
- Mircea.Markus@jboss.com
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.infinispan.transaction.xa.CacheTransaction
CacheTransaction.TransactionCompletedListener
-
-
Constructor Summary
Constructors Constructor Description LocalXaTransaction(Transaction transaction, GlobalTransaction tx, boolean implicitTransaction, int topologyId, long txCreationTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Xid
getXid()
boolean
isEnlisted()
As per the JTA spec, XAResource.start is called on enlistment.void
setXid(Xid xid)
String
toString()
-
Methods inherited from class org.infinispan.transaction.impl.LocalTransaction
addModification, addReadKey, clearRemoteLocksAcquired, equals, getCommitNodes, getLookedUpEntries, getRemoteLocksAcquired, getTransaction, hashCode, isCommitOrRollbackSent, isFromRemoteSite, isImplicitTransaction, isPrepareSent, isReadOnly, keyRead, locksAcquired, markCommitOrRollbackSent, markPrepareSent, putLookedUpEntries, putLookedUpEntry, setFromRemoteSite, setStateTransferFlag
-
Methods inherited from class org.infinispan.transaction.impl.AbstractCacheTransaction
addAffectedKey, addAllAffectedKeys, addBackupLockForKey, addListener, addVersionRead, areLocksReleased, cleanupBackupLocks, clearLockedKeys, clearLookedUpEntries, containsLockOrBackupLock, findAnyLockedOrBackupLocked, forEachBackupLock, freezeModifications, getAffectedKeys, getAllModifications, getBackupLockedKeys, getCreationTime, getGlobalTransaction, getLockedKeys, getModifications, getReleaseFutureForKey, getReleaseFutureForKeys, getStateTransferFlag, getTopologyId, getUpdatedEntryVersions, getVersionsRead, hasModification, isFromStateTransfer, isMarkedForRollback, lookupEntry, markForRollback, notifyOnTransactionFinished, ownsLock, registerLockedKey, removeBackupLock, removeBackupLocks, removeLookedUpEntry, setModifications, setUpdatedEntryVersions, waitForLockRelease
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.infinispan.transaction.xa.CacheTransaction
getLookedUpRemoteVersion, putLookedUpRemoteVersion, replaceVersionRead
-
-
-
-
Constructor Detail
-
LocalXaTransaction
public LocalXaTransaction(Transaction transaction, GlobalTransaction tx, boolean implicitTransaction, int topologyId, long txCreationTime)
-
-
Method Detail
-
setXid
public void setXid(Xid xid)
-
getXid
public Xid getXid()
-
isEnlisted
public boolean isEnlisted()
As per the JTA spec, XAResource.start is called on enlistment. That method also sets the xid for this local transaction.- Specified by:
isEnlisted
in classorg.infinispan.transaction.impl.LocalTransaction
-
toString
public String toString()
- Overrides:
toString
in classorg.infinispan.transaction.impl.LocalTransaction
-
-