Class ConsumerAckRequest

    • Field Detail

      • serialVersionUID

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

        private boolean queueMode
        true if the request is destinated to a queue.
    • Constructor Detail

      • ConsumerAckRequest

        public ConsumerAckRequest​(String targetName,
                                  boolean queueMode)
        Constructs a ConsumerAckRequest instance.
        Parameters:
        targetName - Name of the target queue or subscription.
        queueMode - true if this request is for a queue.
      • ConsumerAckRequest

        public ConsumerAckRequest()
        Constructs a ConsumerAckRequest instance.
    • Method Detail

      • addId

        public void addId​(String id)
        Sets the acknowledged message identifier.
        Parameters:
        id - The acknowledged message identifier.
      • getIds

        public Vector<String> getIds()
        Returns the acknowledged message identifier.
        Returns:
        The acknowledged message identifiers.
      • setQueueMode

        public void setQueueMode​(boolean queueMode)
        Sets the target destination type.
        Parameters:
        queueMode - The target destination type.
      • getQueueMode

        public boolean getQueueMode()
        Returns true if the request is for a queue.
        Returns:
        True if the request is for a queue.
      • 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.