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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MqttRequestResponseClientOptions
build()
Creates a new MqttRequestResponseClientOptions instance based on current builder configurationMqttRequestResponseClientOptions.MqttRequestResponseClientOptionsBuilder
withMaxRequestResponseSubscriptions(int maxRequestResponseSubscriptions)
Sets the maximum number of subscriptions that the client will concurrently use for request-response operationsMqttRequestResponseClientOptions.MqttRequestResponseClientOptionsBuilder
withMaxStreamingSubscriptions(int maxStreamingSubscriptions)
Sets the maximum number of subscriptions that the client will concurrently use for streaming operationsMqttRequestResponseClientOptions.MqttRequestResponseClientOptionsBuilder
withOperationTimeoutSeconds(int operationTimeoutSeconds)
Sets the duration, in seconds, that a request-response operation will wait for completion before giving up
-
-
-
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
-
-