Class ConsumerSetListRequest

    • Field Detail

      • serialVersionUID

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

        private String selector
        Selector for filtering messages on a queue.
      • queueMode

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

        private String[] msgIdsToAck
      • msgCount

        private int msgCount
    • Constructor Detail

      • ConsumerSetListRequest

        public ConsumerSetListRequest​(String targetName,
                                      String selector,
                                      boolean queueMode,
                                      String[] msgIdsToAck,
                                      int msgCount)
        Constructs a ConsumerSetListRequest.
        Parameters:
        targetName - Name of the target queue or subscription.
        selector - Selector for filtering messages.
        queueMode - true if this request is destinated to a queue.
        msgIdsToAck - Identifiers of messages to ack.
        msgCount - Number of messages.
      • ConsumerSetListRequest

        public ConsumerSetListRequest()
        Constructs a ConsumerSetListRequest.
    • Method Detail

      • setSelector

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

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

        public final String[] getMessageIdsToAck()
      • getMessageCount

        public final int getMessageCount()
      • 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.