Class LocalXaTransaction

    • Field Summary

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

        affectedKeys, lookedUpEntries, modifications, topologyId, tx
    • 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
    • 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 class org.infinispan.transaction.impl.LocalTransaction
      • toString

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