Class InDoubtTxInfoImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      InDoubtTxInfoImpl​(javax.transaction.xa.Xid xid, long internalId)  
      InDoubtTxInfoImpl​(javax.transaction.xa.Xid xid, long internalId, IntSet status)  
      InDoubtTxInfoImpl​(javax.transaction.xa.Xid xid, java.lang.Long internalId, java.lang.Integer status)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addOwner​(Address owner)  
      void addStatus​(java.util.Set<java.lang.Integer> statusSet)  
      boolean equals​(java.lang.Object o)  
      java.lang.Long getInternalId()
      Each xid has a unique long object associated to it.
      java.util.Set<Address> getOwners()
      Returns the set of nodes where this transaction information is maintained.
      java.util.Set<java.lang.Integer> getStatus()
      The value represent transaction's state as described by the status field.
      javax.transaction.xa.Xid getXid()
      Transaction's id.
      int hashCode()  
      boolean isLocal()
      Returns true if the transaction information is also present on this node.
      void setLocal​(boolean local)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InDoubtTxInfoImpl

        public InDoubtTxInfoImpl​(javax.transaction.xa.Xid xid,
                                 java.lang.Long internalId,
                                 java.lang.Integer status)
      • InDoubtTxInfoImpl

        public InDoubtTxInfoImpl​(javax.transaction.xa.Xid xid,
                                 long internalId,
                                 IntSet status)
      • InDoubtTxInfoImpl

        public InDoubtTxInfoImpl​(javax.transaction.xa.Xid xid,
                                 long internalId)
    • Method Detail

      • getStatus

        public java.util.Set<java.lang.Integer> getStatus()
        Description copied from interface: RecoveryManager.InDoubtTxInfo
        The value represent transaction's state as described by the status field. Multiple values are returned as it is possible for an in-doubt transaction to be at the same time e.g. prepared on one node and committed on the other.
        Specified by:
        getStatus in interface RecoveryManager.InDoubtTxInfo
      • addStatus

        public void addStatus​(java.util.Set<java.lang.Integer> statusSet)
      • addOwner

        public void addOwner​(Address owner)
      • setLocal

        public void setLocal​(boolean local)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object