Class XACnxRollback

    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        define serialVersionUID for interoperability
        See Also:
        Constant Field Values
      • bq

        private byte[] bq
        Transaction branch qualifier.
      • fi

        private int fi
        Transaction identifier format.
      • gti

        private byte[] gti
        Global transaction identifier.
    • Constructor Detail

      • XACnxRollback

        public XACnxRollback​(byte[] bq,
                             int fi,
                             byte[] gti)
        Constructs an XACnxRollback instance.
        Parameters:
        bq - Transaction branch qualifier.
        fi - Transaction identifier format.
        gti - Global transaction identifier.
      • XACnxRollback

        public XACnxRollback()
        Constructs an XACnxRollback instance.
    • Method Detail

      • setBQ

        public void setBQ​(byte[] bq)
      • getBQ

        public byte[] getBQ()
        Returns the transaction branch qualifier.
        Returns:
        the transaction branch qualifier.
      • setFI

        public void setFI​(int fi)
      • getFI

        public int getFI()
        Returns the transaction identifier format.
        Returns:
        the transaction identifier format.
      • setGTI

        public void setGTI​(byte[] gti)
      • getGTI

        public byte[] getGTI()
        Returns the global transaction identifier.
        Returns:
        the global transaction identifier.
      • add

        public void add​(String target,
                        Vector<String> ids,
                        boolean queueMode)
        Adds a vector of denied messages' identifiers.
        Parameters:
        target - Name of the queue or of the subscription where denying the messages.
        ids - Vector of message identifiers.
        queueMode - true if the messages have to be denied on a queue.
      • getQueues

        public Enumeration<String> getQueues()
        Returns the queues enumeration.
        Returns:
        the queues enumeration.
      • getQueueIds

        public Vector<String> getQueueIds​(String queue)
        Returns the vector of msg identifiers for a given queue.
        Parameters:
        queue - The queue identifier.
        Returns:
        the vector of msg identifiers for the given queue.
      • getSubs

        public Enumeration<String> getSubs()
        Returns the subscriptions enumeration.
        Returns:
        the subscriptions enumeration.
      • setQDenyings

        public void setQDenyings​(Hashtable<String,​Vector<String>> qDenyings)
        Sets the queue denyings table.
        Parameters:
        qDenyings - the queue denyings table.
      • setSubDenyings

        public void setSubDenyings​(Hashtable<String,​Vector<String>> subDenyings)
        Sets the sub denyings table.
        Parameters:
        subDenyings - the sub denyings table.
      • getSubIds

        public Vector<String> getSubIds​(String sub)
        Returns the vector of msg identifiers for a given subscription.
        Parameters:
        sub - The subscription identifier.
        Returns:
        the vector of msg identifiers for a given subscription.
      • readFrom

        public void readFrom​(InputStream is)
                      throws IOException
        The object implements the readFrom method to restore its contents from the input stream.
        Specified by:
        readFrom in interface Streamable
        Overrides:
        readFrom in class AbstractJmsRequest
        Parameters:
        is - the stream to read data from in order to restore the object
        Throws:
        IOException - an error occurs during IO operation.