Enum Class ProgressEventType
- All Implemented Interfaces:
Serializable,Comparable<ProgressEventType>,Constable
Progress event type.
Progress starts by emitting START, followed by emitting zero or more PROGRESS events,
then it emits either one of ERROR/ABORT/SUCCESS.
Progress indicates its completion by emitting COMPLETE at the end of process.
NOTIFICATION event type is used to just notify message without progress.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhen observing process is aborted by user, this is sent once before COMPLETE.Fire when progress complete.When observing process completes with error, this is sent once before COMPLETE.Used when sending message without progress.Fire when progress happens.Fired first when progress starts.When observing process completes successfully, this is sent once before COMPLETE. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProgressEventTypeReturns the enum constant of this class with the specified name.static ProgressEventType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
START
Fired first when progress starts. Happens only once. -
PROGRESS
Fire when progress happens. This can be zero or more time after START. -
ERROR
When observing process completes with error, this is sent once before COMPLETE. -
ABORT
When observing process is aborted by user, this is sent once before COMPLETE. -
SUCCESS
When observing process completes successfully, this is sent once before COMPLETE. -
COMPLETE
Fire when progress complete. This is fired once, after ERROR/ABORT/SUCCESS is fired. After this, no more ProgressEvent should be fired for the same event. -
NOTIFICATION
Used when sending message without progress.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-