Class SubscriptionStatusEvent

java.lang.Object
software.amazon.awssdk.crt.iot.SubscriptionStatusEvent

public class SubscriptionStatusEvent extends Object
An event that describes a change in subscription status for a streaming operation.
  • Method Details

    • getType

      public SubscriptionStatusEventType getType()
      Gets the type of status change represented by the event.
      Returns:
      The type of status change represented by the event
    • getError

      public Optional<Integer> getError()
      Gets the underlying reason for the event. Only set for SubscriptionLost and SubscriptionHalted. Use CRT.awsErrorString() to convert the integer error code into an error description.
      Returns:
      underlying reason for the event