Package software.amazon.awssdk.iot
Class V2ClientStreamOptions<T>
java.lang.Object
software.amazon.awssdk.iot.V2ClientStreamOptions<T>
- Type Parameters:
T- Type that the stream deserializes MQTT messages into
Configuration options for streaming operations created from the V2 service clients
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder type for V2ClientStreamOptions instances -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> V2ClientStreamOptions.V2ClientStreamOptionsBuilder<T>builder()Creates a new builder object for V2ClientStreamOptions instancesConsumer<software.amazon.awssdk.crt.iot.SubscriptionStatusEvent>
-
Method Details
-
builder
Creates a new builder object for V2ClientStreamOptions instances- Type Parameters:
T- Type that the stream deserializes MQTT messages into- Returns:
- a new builder object for V2ClientStreamOptions instances
-
streamEventHandler
- Returns:
- the callback the stream should invoke on a successfully deserialized message
-
subscriptionEventHandler
- Returns:
- the callback the stream should invoke when a message fails to deserialize
-
deserializationFailureHandler
- Returns:
- the callback the stream should invoke when something changes about the underlying subscription
-