Class MqttRequestResponseClientOptions.MqttRequestResponseClientOptionsBuilder

    • Method Detail

      • withMaxRequestResponseSubscriptions

        public MqttRequestResponseClientOptions.MqttRequestResponseClientOptionsBuilder withMaxRequestResponseSubscriptions​(int maxRequestResponseSubscriptions)
        Sets the maximum number of subscriptions that the client will concurrently use for request-response operations
        Parameters:
        maxRequestResponseSubscriptions - maximum number of subscriptions that the client will concurrently use for request-response operations
        Returns:
        the builder instance
      • withMaxStreamingSubscriptions

        public MqttRequestResponseClientOptions.MqttRequestResponseClientOptionsBuilder withMaxStreamingSubscriptions​(int maxStreamingSubscriptions)
        Sets the maximum number of subscriptions that the client will concurrently use for streaming operations
        Parameters:
        maxStreamingSubscriptions - maximum number of subscriptions that the client will concurrently use for streaming operations
        Returns:
        the builder instance
      • withOperationTimeoutSeconds

        public MqttRequestResponseClientOptions.MqttRequestResponseClientOptionsBuilder withOperationTimeoutSeconds​(int operationTimeoutSeconds)
        Sets the duration, in seconds, that a request-response operation will wait for completion before giving up
        Parameters:
        operationTimeoutSeconds - duration, in seconds, that a request-response operation will wait for completion before giving up
        Returns:
        the builder instance
      • build

        public MqttRequestResponseClientOptions build()
        Creates a new MqttRequestResponseClientOptions instance based on current builder configuration
        Returns:
        the builder instance