Class XAResourceHolderState

java.lang.Object
bitronix.tm.internal.XAResourceHolderState

public class XAResourceHolderState extends Object
XAResourceHolder state container. Instances are kept in the transaction and bound to / unbound from the XAResourceHolder as the resource participates in different transactions. A XAResourceHolder without XAResourceHolderState is considered to be in local transaction mode.

Objects of this class also expose resource specific configuration like the unique resource name.

The XAResource state during a transaction participation is also contained: assigned XID, transaction start / end state...

There is exactly one XAResourceHolderState object per XAResourceHolder per Transaction.

Author:
lorban
See Also:
  • Constructor Details

  • Method Details

    • getXid

      public BitronixXid getXid()
    • setXid

      public void setXid(BitronixXid xid) throws BitronixSystemException
      Throws:
      BitronixSystemException
    • getXAResource

      public XAResource getXAResource()
    • getXAResourceHolder

      public XAResourceHolder getXAResourceHolder()
    • getTransactionTimeoutDate

      public Date getTransactionTimeoutDate()
    • setTransactionTimeoutDate

      public void setTransactionTimeoutDate(Date transactionTimeoutDate)
    • getUniqueName

      public String getUniqueName()
    • getUseTmJoin

      public boolean getUseTmJoin()
    • getTwoPcOrderingPosition

      public int getTwoPcOrderingPosition()
    • getIgnoreRecoveryFailures

      public boolean getIgnoreRecoveryFailures()
    • isEnded

      public boolean isEnded()
    • isStarted

      public boolean isStarted()
    • isSuspended

      public boolean isSuspended()
    • isFailed

      public boolean isFailed()
    • end

      public void end(int flags) throws XAException
      Throws:
      XAException
    • start

      public void start(int flags) throws XAException
      Throws:
      XAException
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object