Interface SubscriptionHealthStatus

All Superinterfaces:
JsonEnum
All Known Implementing Classes:
SubscriptionHealthStatus.SubscriptionHealthStatusEnum

public interface SubscriptionHealthStatus extends JsonEnum

The health status of the Subscription that indicates whether notifications are being delivered.

  • Field Details

    • HEALTHY

      static final SubscriptionHealthStatus HEALTHY

      Delivers notifications as expected.

    • CONFIGURATION_ERROR

      static final SubscriptionHealthStatus CONFIGURATION_ERROR

      Notifications cannot be delivered with the current configuration. Common causes are deleting the Destination queue, deleting access credentials, or removing necessary permissions. You can fix the configuration by re-creating the configuration on the Destination side, or by setting a new configuration with the Change Destination update action. After the configuration is fixed, undelivered notifications will be delivered and the status will change to Healthy. ConfigurationError is automatically turned into ConfigurationErrorDeliveryStopped after some time. For more information, see Delivery Guarantees.

    • CONFIGURATION_ERROR_DELIVERY_STOPPED

      static final SubscriptionHealthStatus CONFIGURATION_ERROR_DELIVERY_STOPPED

      Does not deliver notifications with the current configuration and the delivery of the notifications is no longer attempted. After the configuration is fixed, undelivered notifications are not retained and will not be delivered. The status will change to Healthy as soon as new notifications can be delivered.

    • TEMPORARY_ERROR

      static final SubscriptionHealthStatus TEMPORARY_ERROR

      Does not deliver notifications temporarily due to reasons other than a configuration error. For example, the Destination has a temporary outage.

    • MANUALLY_SUSPENDED

      static final SubscriptionHealthStatus MANUALLY_SUSPENDED

      Does not deliver notifications with the current configuration and the delivery of the notifications is no longer attempted. Undelivered notifications are not retained and will not be delivered. The status will not automatically change to Healthy. To return your subscriptions to a Healthy status, contact the Composable Commerce support team.

  • Method Details

    • getJsonName

      String getJsonName()
      the JSON value
      Specified by:
      getJsonName in interface JsonEnum
      Returns:
      json value
    • name

      String name()
      the enum value
      Specified by:
      name in interface JsonEnum
      Returns:
      name
    • toString

      String toString()
      convert value to string
      Specified by:
      toString in interface JsonEnum
      Overrides:
      toString in class Object
      Returns:
      string representation
    • findEnum

      static SubscriptionHealthStatus findEnum(String value)
      factory method for a enum value of SubscriptionHealthStatus if no enum has been found an anonymous instance will be created
      Parameters:
      value - the enum value to be wrapped
      Returns:
      enum instance
    • findEnumViaJsonName

      static Optional<SubscriptionHealthStatus> findEnumViaJsonName(String jsonName)
      method to find enum using the JSON value
      Parameters:
      jsonName - the json value to be wrapped
      Returns:
      optional of enum instance
    • values

      static SubscriptionHealthStatus[] values()
      possible enum values
      Returns:
      array of possible enum values