Class ConsumerReceiveRequest

    • 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 on a queue.
      • timeToLive

        private long timeToLive
        The time to live value of the request (negative for infinite).
      • queueMode

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

        private boolean receiveAck
    • Constructor Detail

      • ConsumerReceiveRequest

        public ConsumerReceiveRequest​(String targetName,
                                      String selector,
                                      long timeToLive,
                                      boolean queueMode)
        Constructs a ConsumerReceiveRequest.
        Parameters:
        targetName - Name of the target queue or subscription.
        selector - The selector for filtering messages, if any.
        timeToLive - Time to live value in milliseconds, negative for infinite.
        queueMode - true if this request is destinated to a queue.
      • ConsumerReceiveRequest

        public ConsumerReceiveRequest()
        Constructs a ConsumerReceiveRequest.
    • Method Detail

      • setSelector

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

        public String getSelector()
        Returns the selector for filtering the messages.
        Returns:
        The selector.
      • setTimeToLive

        public void setTimeToLive​(long timeToLive)
        Sets the time to live value.
        Parameters:
        timeToLive - The time to live value.
      • getTimeToLive

        public long getTimeToLive()
        Returns the time to live value in milliseconds.
        Returns:
        The time to live value.
      • 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 destinated to a queue.
        Returns:
        The target destination type.
      • setReceiveAck

        public void setReceiveAck​(boolean receiveAck)
      • getReceiveAck

        public final boolean getReceiveAck()
      • 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.