Class ConsumerUnsetListRequest

    • Field Detail

      • serialVersionUID

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

        private boolean queueMode
        true if the listener is listening to a queue.
      • cancelledRequestId

        private int cancelledRequestId
        Identifier of the last listener request, cancelled by this request, queue mode only.
    • Constructor Detail

      • ConsumerUnsetListRequest

        public ConsumerUnsetListRequest​(boolean queueMode)
        Constructs a ConsumerUnsetListRequest.
        Parameters:
        queueMode - true if the listener is listening to a queue.
      • ConsumerUnsetListRequest

        public ConsumerUnsetListRequest()
        Constructs a ConsumerUnsetListRequest.
    • Method Detail

      • setQueueMode

        public void setQueueMode​(boolean queueMode)
        Sets the listener mode (queue or topic listener).
        Parameters:
        queueMode - the listener mode.
      • getQueueMode

        public boolean getQueueMode()
        Returns true for a queue listener.
        Returns:
        True for a queue listener.
      • setCancelledRequestId

        public void setCancelledRequestId​(int cancelledRequestId)
        Sets the identifier of the last listener request, cancelled by this request, queue mode only.
        Parameters:
        cancelledRequestId - Id of last listener request cancelled by this request.
      • getCancelledRequestId

        public int getCancelledRequestId()
        Returns the identifier of the last listener request, cancelled by this request, queue mode only.
        Returns:
        Id of last listener request cancelled by this request.
      • 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.