Class QBrowseRequest

    • Field Detail

      • serialVersionUID

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

        private String selector
        The selector for filtering messages.
    • Constructor Detail

      • QBrowseRequest

        public QBrowseRequest​(String to,
                              String selector)
        Constructs a QBrowseRequest instance.
        Parameters:
        to - Name of the queue to browse.
        selector - The selector for filtering messages, if any.
      • QBrowseRequest

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

      • setSelector

        public void setSelector​(String selector)
        Sets the selector.
        Parameters:
        selector - The selector for filtering messages.
      • getSelector

        public String getSelector()
        Returns the selector for filtering the messages.
        Returns:
        The selector for filtering messages.
      • 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.