All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.subscriptions.SubscriptionHealthStatus Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
package io.sphere.sdk.subscriptions;

import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.models.SphereEnumeration;

public enum SubscriptionHealthStatus implements SphereEnumeration {

    /**
     * The subscription is delivering messages as expected
     */
    HEALTHY,

    /**
     * Messages can not be delivered with the current configuration. If the configuration is fixed, all messages that haven't been delivered yet will still be delivered.
     */
    CONFIGURATION_ERROR,

    /**
     * Messages can not be delivered with the current configuration. Delivery is not attempted anymore. Undelivered messages are not retained.
     */
    CONFIGURATION_ERROR_DELIVERY_STOPPED,


    /**
     * Messages can not be delivered currently, but not due to the configuration. E.g. the destination has a temporary outage.
     */
    TEMPORARY_ERROR;


    @JsonCreator
    public static SubscriptionHealthStatus ofSphereValue(final String value) {
        return SphereEnumeration.findBySphereName(values(), value).get();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy