public enum ProgressEventType extends java.lang.Enum<ProgressEventType>
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.
Enum Constant and Description |
---|
ABORT
When observing process is aborted by user, this is sent once before COMPLETE.
|
COMPLETE
Fire when progress complete.
|
ERROR
When observing process completes with error, this is sent once before COMPLETE.
|
NOTIFICATION
Used when sending message without progress.
|
PROGRESS
Fire when progress happens.
|
START
Fired first when progress starts.
|
SUCCESS
When observing process completes successfully, this is sent once before COMPLETE.
|
Modifier and Type | Method and Description |
---|---|
static ProgressEventType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ProgressEventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProgressEventType START
public static final ProgressEventType PROGRESS
public static final ProgressEventType ERROR
public static final ProgressEventType ABORT
public static final ProgressEventType SUCCESS
public static final ProgressEventType COMPLETE
public static final ProgressEventType NOTIFICATION
public static ProgressEventType[] values()
for (ProgressEventType c : ProgressEventType.values()) System.out.println(c);
public static ProgressEventType 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 nullCopyright © 2020 The Apache Software Foundation