Package com.exedio.cope.pattern
Enum Dispatcher.Result
- java.lang.Object
-
- java.lang.Enum<Dispatcher.Result>
-
- com.exedio.cope.pattern.Dispatcher.Result
-
- All Implemented Interfaces:
Serializable
,Comparable<Dispatcher.Result>
- Enclosing class:
- Dispatcher
public static enum Dispatcher.Result extends Enum<Dispatcher.Result>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description failure
finalFailure
A failure that causespending
to be set to false.success
transientFailure
A failure that leavespending
unchanged.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSuccess()
static Dispatcher.Result
valueOf(String name)
Returns the enum constant of this type with the specified name.static Dispatcher.Result[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
transientFailure
public static final Dispatcher.Result transientFailure
A failure that leavespending
unchanged.
-
finalFailure
public static final Dispatcher.Result finalFailure
A failure that causespending
to be set to false.
-
failure
@Deprecated public static final Dispatcher.Result failure
-
success
public static final Dispatcher.Result success
-
-
Method Detail
-
values
public static Dispatcher.Result[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Dispatcher.Result c : Dispatcher.Result.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Dispatcher.Result valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
isSuccess
public boolean isSuccess()
-
-