Enum SubscriptionStatusEventType

java.lang.Object
java.lang.Enum<SubscriptionStatusEventType>
software.amazon.awssdk.crt.iot.SubscriptionStatusEventType
All Implemented Interfaces:
Serializable, Comparable<SubscriptionStatusEventType>

public enum SubscriptionStatusEventType extends Enum<SubscriptionStatusEventType>
The type of change to the state of a streaming operation subscription
  • Enum Constant Details

    • SUBSCRIPTION_ESTABLISHED

      public static final SubscriptionStatusEventType SUBSCRIPTION_ESTABLISHED
      The streaming operation is successfully subscribed to its topic (filter)
    • SUBSCRIPTION_LOST

      public static final SubscriptionStatusEventType SUBSCRIPTION_LOST
      The streaming operation has temporarily lost its subscription to its topic (filter)
    • SUBSCRIPTION_HALTED

      public static final SubscriptionStatusEventType SUBSCRIPTION_HALTED
      The streaming operation has entered a terminal state where it has given up trying to subscribe to its topic (filter). This is always due to user error (bad topic filter or IoT Core permission policy).
  • Method Details

    • values

      public static SubscriptionStatusEventType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SubscriptionStatusEventType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Returns:
      the native enum integer value associated with this Java enum value
    • getEnumValueFromInteger

      public static SubscriptionStatusEventType getEnumValueFromInteger(int value)
      Creates a Java SubscriptionStatusEventType enum value from a native integer value
      Parameters:
      value - native integer value to convert to a SubscriptionStatusEventType instance
      Returns:
      a SubscriptionStatusEventType value