Enum DynamicRouterControlMessage.ControlMessageType
- java.lang.Object
-
- java.lang.Enum<DynamicRouterControlMessage.ControlMessageType>
-
- org.apache.camel.component.dynamicrouter.DynamicRouterControlMessage.ControlMessageType
-
- All Implemented Interfaces:
Serializable,Comparable<DynamicRouterControlMessage.ControlMessageType>
- Enclosing class:
- DynamicRouterControlMessage
public static enum DynamicRouterControlMessage.ControlMessageType extends Enum<DynamicRouterControlMessage.ControlMessageType> implements Serializable
The type of message received on the control channel.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SUBSCRIBEFor subscribing to receive exchanges.UNSUBSCRIBEFor unsubscribing to stop receiving exchanges.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DynamicRouterControlMessage.ControlMessageTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DynamicRouterControlMessage.ControlMessageType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUBSCRIBE
public static final DynamicRouterControlMessage.ControlMessageType SUBSCRIBE
For subscribing to receive exchanges.
-
UNSUBSCRIBE
public static final DynamicRouterControlMessage.ControlMessageType UNSUBSCRIBE
For unsubscribing to stop receiving exchanges.
-
-
Method Detail
-
values
public static DynamicRouterControlMessage.ControlMessageType[] 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 (DynamicRouterControlMessage.ControlMessageType c : DynamicRouterControlMessage.ControlMessageType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DynamicRouterControlMessage.ControlMessageType 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
-
-