Enum SubscriptionStatusEventType

    • Enum Constant Detail

      • 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 Detail

      • values

        public static SubscriptionStatusEventType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SubscriptionStatusEventType c : SubscriptionStatusEventType.values())
            System.out.println(c);
        
        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