public enum StateChangeReturn extends java.lang.Enum<StateChangeReturn>
Only FAILURE
is a real failure.
Enum Constant and Description |
---|
ASYNC
The state change will happen asynchronously.
|
FAILURE
The state change failed.
|
NO_PREROLL
The state change succeeded but the
Element cannot produce data in
State.PAUSED . |
SUCCESS
The state change succeeded.
|
Modifier and Type | Method and Description |
---|---|
static StateChangeReturn |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StateChangeReturn[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StateChangeReturn FAILURE
public static final StateChangeReturn SUCCESS
public static final StateChangeReturn ASYNC
public static final StateChangeReturn NO_PREROLL
Element
cannot produce data in
State.PAUSED
. This typically happens with live sources.public static StateChangeReturn[] values()
for (StateChangeReturn c : StateChangeReturn.values()) System.out.println(c);
public static StateChangeReturn 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