Class ConsumerDenyRequest

    • Field Detail

      • serialVersionUID

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

        private String id
        Message identifier.
      • queueMode

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

        private boolean doNotAck
        true if the request must not be acked by the server.
      • redelivered

        private boolean redelivered
        true if the message has already been delivered.
    • Constructor Detail

      • ConsumerDenyRequest

        public ConsumerDenyRequest​(String targetName,
                                   String id,
                                   boolean queueMode)
        Constructs a ConsumerDenyRequest instance.
        Parameters:
        targetName - Name of the target queue or subscription.
        id - The message identifier.
        queueMode - true if this request is destinated to a queue.
      • ConsumerDenyRequest

        public ConsumerDenyRequest​(String targetName,
                                   String id,
                                   boolean queueMode,
                                   boolean doNotAck)
        Constructs a ConsumerDenyRequest instance.
        Parameters:
        targetName - Name of the target queue or subscription.
        id - The message identifier.
        queueMode - true if this request is destinated to a queue.
        doNotAck - true if this request must not be acked by the server.
      • ConsumerDenyRequest

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

      • setId

        public void setId​(String id)
        Sets the denied message identifier.
        Parameters:
        id - The denied message identifier.
      • getId

        public String getId()
        Returns the denied message identifier.
        Returns:
        The denied message identifier.
      • 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:
        True if the request is for a queue.
      • setDoNotAck

        public void setDoNotAck​(boolean doNotAck)
        Sets the server ack policy.
        Parameters:
        doNotAck - The ack policy.
      • getDoNotAck

        public boolean getDoNotAck()
        Returns true if the request must not be acked by the server.
        Returns:
        The ack policy.
      • isRedelivered

        public boolean isRedelivered()
        Returns:
        the redelivered
      • setRedelivered

        public void setRedelivered​(boolean redelivered)
        Parameters:
        redelivered - the redelivered to set
      • 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.