Package org.apache.camel.spi
Enum RouteError.Phase
- java.lang.Object
-
- java.lang.Enum<RouteError.Phase>
-
- org.apache.camel.spi.RouteError.Phase
-
- All Implemented Interfaces:
Serializable
,Comparable<RouteError.Phase>
- Enclosing interface:
- RouteError
public static enum RouteError.Phase extends Enum<RouteError.Phase>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RouteError.Phase
valueOf(String name)
Returns the enum constant of this type with the specified name.static RouteError.Phase[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
START
public static final RouteError.Phase START
-
STOP
public static final RouteError.Phase STOP
-
SUSPEND
public static final RouteError.Phase SUSPEND
-
RESUME
public static final RouteError.Phase RESUME
-
SHUTDOWN
public static final RouteError.Phase SHUTDOWN
-
REMOVE
public static final RouteError.Phase REMOVE
-
-
Method Detail
-
values
public static RouteError.Phase[] 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 (RouteError.Phase c : RouteError.Phase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RouteError.Phase 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
-
-