public enum NotificationState extends Enum<NotificationState>
NotificationState
class represents the various states that an
outbound notification can exist in. It allows tracking and history for
notifications that are pending, have succeeded, or were processed but failed
to be sent successfully.Enum Constant and Description |
---|
DELIVERED
The notification was processed successfully.
|
DISPATCHED
The notification was picked up and processed by the dispatcher, but there
is no information on whether the delivery was successful.
|
FAILED
The notification was processed, but failed to be sent.
|
PENDING
The notification has not yet been processed by the notification system.
|
Modifier and Type | Method and Description |
---|---|
static NotificationState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NotificationState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NotificationState PENDING
public static final NotificationState FAILED
public static final NotificationState DELIVERED
public static final NotificationState DISPATCHED
public static NotificationState[] values()
for (NotificationState c : NotificationState.values()) System.out.println(c);
public static NotificationState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2022 Apache Software Foundation. All rights reserved.