Class LocalXaTransaction

    • Field Summary

      • Fields inherited from class org.infinispan.transaction.impl.AbstractCacheTransaction

        affectedKeys, lookedUpEntries, modifications, topologyId, tx
    • Constructor Summary

      Constructors 
      Constructor Description
      LocalXaTransaction​(javax.transaction.Transaction transaction, GlobalTransaction tx, boolean implicitTransaction, int topologyId, long txCreationTime)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.transaction.xa.Xid getXid()  
      boolean isEnlisted()
      As per the JTA spec, XAResource.start is called on enlistment.
      void setXid​(javax.transaction.xa.Xid xid)  
      java.lang.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
    • Constructor Detail

      • LocalXaTransaction

        public LocalXaTransaction​(javax.transaction.Transaction transaction,
                                  GlobalTransaction tx,
                                  boolean implicitTransaction,
                                  int topologyId,
                                  long txCreationTime)
    • Method Detail

      • setXid

        public void setXid​(javax.transaction.xa.Xid xid)
      • getXid

        public javax.transaction.xa.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 class org.infinispan.transaction.impl.LocalTransaction
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class org.infinispan.transaction.impl.LocalTransaction