Class QueueOptions

    • Constructor Detail

      • QueueOptions

        public QueueOptions()
      • QueueOptions

        public QueueOptions​(JsonObject json)
    • Method Detail

      • setAutoAck

        public QueueOptions setAutoAck​(boolean autoAck)
        Parameters:
        autoAck - true if the server should consider messages acknowledged once delivered; false if the server should expect explicit acknowledgements
      • setKeepMostRecent

        public QueueOptions setKeepMostRecent​(boolean keepMostRecent)
        Parameters:
        keepMostRecent - true for discarding old messages instead of recent ones, otherwise use false
      • setMaxInternalQueueSize

        public QueueOptions setMaxInternalQueueSize​(int maxInternalQueueSize)
        Parameters:
        maxInternalQueueSize - the size of internal queue
      • isAutoAck

        public boolean isAutoAck()
        Returns:
        true if the server should consider messages acknowledged once delivered; false if the server should expect explicit acknowledgements
      • maxInternalQueueSize

        public int maxInternalQueueSize()
        Returns:
        the size of internal queue
      • isKeepMostRecent

        public boolean isKeepMostRecent()
        Returns:
        true if old messages will be discarded instead of recent ones, otherwise use false
      • isNoLocal

        public boolean isNoLocal()
      • setNoLocal

        public void setNoLocal​(boolean noLocal)
      • isConsumerExclusive

        public boolean isConsumerExclusive()
      • setConsumerExclusive

        public void setConsumerExclusive​(boolean consumerExclusive)
      • getConsumerTag

        public String getConsumerTag()
      • setConsumerTag

        public void setConsumerTag​(String consumerTag)
      • getConsumerArguments

        public Map<String,​Object> getConsumerArguments()
      • setConsumerArguments

        public void setConsumerArguments​(Map<String,​Object> consumerArguments)