Package org.apache.qpid.server.message
Enum MessageSource.MessageConversionExceptionHandlingPolicy
- java.lang.Object
-
- java.lang.Enum<MessageSource.MessageConversionExceptionHandlingPolicy>
-
- org.apache.qpid.server.message.MessageSource.MessageConversionExceptionHandlingPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<MessageSource.MessageConversionExceptionHandlingPolicy>
- Enclosing interface:
- MessageSource
public static enum MessageSource.MessageConversionExceptionHandlingPolicy extends Enum<MessageSource.MessageConversionExceptionHandlingPolicy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSE
REJECT
ROUTE_TO_ALTERNATE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MessageSource.MessageConversionExceptionHandlingPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static MessageSource.MessageConversionExceptionHandlingPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLOSE
public static final MessageSource.MessageConversionExceptionHandlingPolicy CLOSE
-
ROUTE_TO_ALTERNATE
public static final MessageSource.MessageConversionExceptionHandlingPolicy ROUTE_TO_ALTERNATE
-
REJECT
public static final MessageSource.MessageConversionExceptionHandlingPolicy REJECT
-
-
Method Detail
-
values
public static MessageSource.MessageConversionExceptionHandlingPolicy[] 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 (MessageSource.MessageConversionExceptionHandlingPolicy c : MessageSource.MessageConversionExceptionHandlingPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessageSource.MessageConversionExceptionHandlingPolicy 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
-
-