Class ConsumerSubRequest

    • Field Detail

      • serialVersionUID

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

        private String subName
        The subscription's name.
      • asyncSub

        private boolean asyncSub
        asynchronous subscription.
      • selector

        private String selector
        The selector for filtering messages.
      • noLocal

        private boolean noLocal
        true if the subscriber does not wish to consume messages produced by its connection.
      • durable

        private boolean durable
        true if the subscription is durable.
      • clientID

        private String clientID
      • shared

        private boolean shared
    • Constructor Detail

      • ConsumerSubRequest

        public ConsumerSubRequest​(String topic,
                                  String subName,
                                  String selector,
                                  boolean noLocal,
                                  boolean durable,
                                  boolean asyncSub,
                                  String clientID,
                                  boolean shared)
        Constructs a ConsumerSubRequest.
        Parameters:
        topic - The topic identifier the client wishes to subscribe to.
        subName - The subscription's name.
        selector - The selector for filtering messages, if any.
        noLocal - true for not consuming the local messages.
        durable - true for a durable subscription.
        asyncSub - true for a asynchronous subscription request.
        clientID - The clientID
        shared - true if the consumer is shared
      • ConsumerSubRequest

        public ConsumerSubRequest()
        Constructs a ConsumerSubRequest.
    • Method Detail

      • setSubName

        public void setSubName​(String subName)
        Sets the subscription name.
        Parameters:
        subName - the subscription name.
      • getSubName

        public String getSubName()
        Returns the name of the subscription.
        Returns:
        the name of the subscription.
      • 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.
      • setNoLocal

        public void setNoLocal​(boolean noLocal)
        Sets the noLocal attribute.
        Parameters:
        noLocal - The noLocal attribute.
      • getNoLocal

        public boolean getNoLocal()
        Returns true for not consuming the local messages.
        Returns:
        The noLocal attribute.
      • setDurable

        public void setDurable​(boolean durable)
        Sets the durable attribute.
        Parameters:
        durable - The durable attribute.
      • getDurable

        public boolean getDurable()
        Returns true for a durable subscription.
        Returns:
        The durable attribute.
      • getClientID

        public String getClientID()
        Returns:
        The clientID
      • isShared

        public boolean isShared()
        Returns:
        true if shared
      • isAsyncSubscription

        public boolean isAsyncSubscription()
        Returns true for asynchronous subscription.
        Returns:
        True for asynchronous subscription.
      • 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.