Class XARequest


  • public class XARequest
    extends java.lang.Object
    Author:
    Nabib El-Rahman
    • Constructor Detail

      • XARequest

        public XARequest​(XARequest.RequestType requestType,
                         javax.transaction.xa.Xid xid)
        Constructor
        Parameters:
        requestType - what request is this representing
        xid - the Xid of the transaction this request is being executed for
      • XARequest

        public XARequest​(XARequest.RequestType requestType,
                         javax.transaction.xa.Xid xid,
                         boolean onePhase)
        Constructor
        Parameters:
        requestType - what request is this representing
        xid - the Xid of the transaction this request is being executed for
        onePhase - whether this is a single phase commit
    • Method Detail

      • getXid

        public javax.transaction.xa.Xid getXid()
        Returns:
        the Xid of the Transaction
      • isOnePhase

        public boolean isOnePhase()
        Returns:
        true is one phase commit requested, otherwise false