Class InDoubtTxInfo


  • public class InDoubtTxInfo
    extends Object
    An object describing in doubt transaction's state. Needed by the transaction recovery process, for displaying transactions to the user.
    Since:
    5.0
    Author:
    Mircea Markus
    • Constructor Detail

      • InDoubtTxInfo

        public InDoubtTxInfo​(XidImpl xid,
                             long internalId,
                             int status)
      • InDoubtTxInfo

        public InDoubtTxInfo​(XidImpl xid,
                             long internalId)
    • Method Detail

      • getXid

        public XidImpl getXid()
        Returns:
        The transaction's XidImpl.
      • getInternalId

        public long getInternalId()
        Returns:
        The unique long object associated to XidImpl. It makes possible the invocation of recovery operations.
      • getStatus

        public int getStatus()
        The value represent transaction's state as described by the status field.
        Returns:
        The Status or -1 if not set.
      • setStatus

        public void setStatus​(int status)
        Sets the transaction's state.
      • getOwners

        public Set<Address> getOwners()
        Returns:
        The set of nodes where this transaction information is maintained.
      • addOwner

        public void addOwner​(Address owner)
        Adds owner as a node where this transaction information is maintained.
      • isLocal

        public boolean isLocal()
        Returns:
        True if the transaction information is also present on this node.
      • setLocal

        public void setLocal​(boolean local)
        Sets true if this transaction information is stored locally.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object