@ThreadSafety(level=COMPLETELY_THREADSAFE) public enum NotificationDeliveryResult extends java.lang.Enum<NotificationDeliveryResult>
Enum Constant and Description |
---|
FAILURE
The notification could not be delivered and delivery should not be retried.
|
RETRY
The notification could not be delivered but delivery should be retried.
|
SUCCESS
The notification was successfully delivered.
|
Modifier and Type | Method and Description |
---|---|
static NotificationDeliveryResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NotificationDeliveryResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NotificationDeliveryResult SUCCESS
public static final NotificationDeliveryResult FAILURE
public static final NotificationDeliveryResult RETRY
RETRY
when all future attempts of the notification delivery will
fail, e.g. a remote change failing due to a schema violation. If the
extension can determine that the remote service is completely unavailable,
then it is fine to continue to retry, but if the service is available
and only failing for some changes, then continuing to retry is dangerous.
There are methods on the Notification
interface to determine how
many attempts have been made and for how long attempts have been made.
Above some threshold, the extension should return FAILURE
instead
of RETRY
.public static NotificationDeliveryResult[] values()
for (NotificationDeliveryResult c : NotificationDeliveryResult.values()) System.out.println(c);
public static NotificationDeliveryResult valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null