public enum ConsumeReturnType extends java.lang.Enum<ConsumeReturnType>
Enum Constant and Description |
---|
EXCEPTION
consume throw exception
|
FAILED
consume return failed
|
RETURNNULL
consume return null
|
SUCCESS
consume return success
|
TIME_OUT
consume timeout ,even if success
|
Modifier and Type | Method and Description |
---|---|
static ConsumeReturnType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConsumeReturnType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConsumeReturnType SUCCESS
public static final ConsumeReturnType TIME_OUT
public static final ConsumeReturnType EXCEPTION
public static final ConsumeReturnType RETURNNULL
public static final ConsumeReturnType FAILED
public static ConsumeReturnType[] values()
for (ConsumeReturnType c : ConsumeReturnType.values()) System.out.println(c);
public static ConsumeReturnType 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