Package software.amazon.awssdk.crt.mqtt5
Class Mqtt5ListenerOptions
- java.lang.Object
-
- software.amazon.awssdk.crt.mqtt5.Mqtt5ListenerOptions
-
public class Mqtt5ListenerOptions extends Object
Configuration for the creation of Mqtt5Listener MQTT5 support is currently in developer preview. We encourage feedback at all times, but feedback during the preview window is especially valuable in shaping the final product. During the preview period we may make backwards-incompatible changes to the public API, but in general, this is something we will try our best to avoid.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMqtt5ListenerOptions.ListenerPublishEventsAn interface that defines all of the publish functions the Mqtt5Client will call when it receives a publish packet.static classMqtt5ListenerOptions.Mqtt5ListenerOptionsBuilderAll of the options for a Mqtt5Listener.
-
Constructor Summary
Constructors Constructor Description Mqtt5ListenerOptions(Mqtt5ListenerOptions.Mqtt5ListenerOptionsBuilder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mqtt5ClientOptions.LifecycleEventsgetLifecycleEvents()Returns the LifecycleEvents interface that will be called when the client gets a LifecycleEvent.Mqtt5ListenerOptions.ListenerPublishEventsgetListenerPublishEvents()Returns the PublishEvents interface that will be called when the client gets a message.
-
-
-
Constructor Detail
-
Mqtt5ListenerOptions
public Mqtt5ListenerOptions(Mqtt5ListenerOptions.Mqtt5ListenerOptionsBuilder builder)
-
-
Method Detail
-
getLifecycleEvents
public Mqtt5ClientOptions.LifecycleEvents getLifecycleEvents()
Returns the LifecycleEvents interface that will be called when the client gets a LifecycleEvent.- Returns:
- The LifecycleEvents interface that will be called when the client gets a LifecycleEvent
-
getListenerPublishEvents
public Mqtt5ListenerOptions.ListenerPublishEvents getListenerPublishEvents()
Returns the PublishEvents interface that will be called when the client gets a message.- Returns:
- PublishEvents interface that will be called when the client gets a message.
-
-