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
LocalTransaction
implementation to be used with TransactionXaAdapter
.- Since:
- 5.0
- Author:
- Mircea.Markus@jboss.com
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.transaction.xa.CacheTransaction
CacheTransaction.TransactionCompletedListener
-
Field Summary
Fields inherited from class org.infinispan.transaction.impl.AbstractCacheTransaction
affectedKeys, lookedUpEntries, modifications, topologyId, tx
-
Constructor Summary
ConstructorDescriptionLocalXaTransaction
(javax.transaction.Transaction transaction, GlobalTransaction tx, boolean implicitTransaction, int topologyId, long txCreationTime) -
Method Summary
Methods inherited from class org.infinispan.transaction.impl.LocalTransaction
addModification, clearRemoteLocksAcquired, equals, getCommitNodes, getIracMetadata, getLookedUpEntries, getRemoteLocksAcquired, getTransaction, hashCode, hasIracMetadata, isFromRemoteSite, isImplicitTransaction, isPrepareSent, isReadOnly, locksAcquired, markPrepareSent, putLookedUpEntries, putLookedUpEntry, setFromRemoteSite, setStateTransferFlag, storeIracMetadata
Methods inherited from class org.infinispan.transaction.impl.AbstractCacheTransaction
addAffectedKey, addAllAffectedKeys, addBackupLockForKey, addListener, addVersionRead, checkIfRolledBack, cleanupBackupLocks, clearLockedKeys, clearLookedUpEntries, forEachBackupLock, forEachLock, freezeModifications, getAffectedKeys, getAllModifications, getBackupLockedKeys, getCreationTime, getGlobalTransaction, getLockedKeys, getModifications, getReleaseFutureForKey, getReleaseFutureForKeys, getStateTransferFlag, getTopologyId, getUpdatedEntryVersions, getVersionsRead, hasModifications, isFromStateTransfer, isMarkedForRollback, lookupEntry, markForRollback, notifyOnTransactionFinished, ownsLock, registerLockedKey, removeBackupLock, removeBackupLocks, removeLookedUpEntry, setModifications, setUpdatedEntryVersions
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.transaction.xa.CacheTransaction
hasModification
-
Constructor Details
-
LocalXaTransaction
public LocalXaTransaction(javax.transaction.Transaction transaction, GlobalTransaction tx, boolean implicitTransaction, int topologyId, long txCreationTime)
-
-
Method Details
-
setXid
-
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 classLocalTransaction
-
toString
- Overrides:
toString
in classLocalTransaction
-