Package software.amazon.awssdk.crt.iot
Class MqttRequestResponseClientOptions.MqttRequestResponseClientOptionsBuilder
java.lang.Object
software.amazon.awssdk.crt.iot.MqttRequestResponseClientOptions.MqttRequestResponseClientOptionsBuilder
- Enclosing class:
- MqttRequestResponseClientOptions
public static class MqttRequestResponseClientOptions.MqttRequestResponseClientOptionsBuilder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a new MqttRequestResponseClientOptions instance based on current builder configurationwithMaxRequestResponseSubscriptions(int maxRequestResponseSubscriptions) Sets the maximum number of subscriptions that the client will concurrently use for request-response operationswithMaxStreamingSubscriptions(int maxStreamingSubscriptions) Sets the maximum number of subscriptions that the client will concurrently use for streaming operationswithOperationTimeoutSeconds(int operationTimeoutSeconds) Sets the duration, in seconds, that a request-response operation will wait for completion before giving up
-
Method Details
-
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
Creates a new MqttRequestResponseClientOptions instance based on current builder configuration- Returns:
- the builder instance
-