Class SessDenyRequest

    • Field Detail

      • serialVersionUID

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

        private Vector<String> ids
        Vector of message identifiers.
      • queueMode

        private boolean queueMode
        true if the request destination is 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

      • SessDenyRequest

        public SessDenyRequest​(String targetName,
                               Vector<String> ids,
                               boolean queueMode)
        Constructs a SessDenyRequest instance.
        Parameters:
        targetName - Name of the target queue or subscription.
        ids - Vector of denied message identifiers.
        queueMode - true if this request is destinated to a queue.
      • SessDenyRequest

        public SessDenyRequest​(String targetName,
                               Vector<String> ids,
                               boolean queueMode,
                               boolean doNotAck)
        Constructs a SessDenyRequest instance.
        Parameters:
        targetName - Name of the target queue or subscription.
        ids - Vector of denied message identifiers.
        queueMode - true if this request is destinated to a queue.
        doNotAck - true if this request must not be acked by the server.
      • SessDenyRequest

        public SessDenyRequest()
        Public no-arg constructor needed by Externalizable.
    • Method Detail

      • setIds

        public void setIds​(Vector<String> ids)
        Sets the vector of identifiers.
        Parameters:
        ids - The identifiers of denied messages.
      • addId

        public void addId​(String id)
      • getIds

        public Vector<String> getIds()
        Returns the vector of denied messages identifiers.
        Returns:
        The identifiers of denied messages.
      • setQueueMode

        public void setQueueMode​(boolean queueMode)
        Sets the target destination type.
        Parameters:
        queueMode - The destination type.
      • getQueueMode

        public boolean getQueueMode()
        Returns true if the request destination is a queue.
        Returns:
        The destination type.
      • setDoNotAck

        public void setDoNotAck​(boolean doNotAck)
        Sets the server ack policy.
        Parameters:
        doNotAck - True if the request doesn't need ack.
      • getDoNotAck

        public boolean getDoNotAck()
        Returns true if the request must not be acked by the server.
        Returns:
        True if the request doesn't need ack.
      • 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.