Package interlok.rabbitmq
Enum PublishToDefaultExchange.Behaviour
- java.lang.Object
-
- java.lang.Enum<PublishToDefaultExchange.Behaviour>
-
- interlok.rabbitmq.PublishToDefaultExchange.Behaviour
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PublishToDefaultExchange.Behaviour>
- Enclosing class:
- PublishToDefaultExchange
public static enum PublishToDefaultExchange.Behaviour extends java.lang.Enum<PublishToDefaultExchange.Behaviour>
Controls behaviour when publishing the messsage.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NO_EXCEPTIONNever throw an exception and add values againstMetadataConstants.RMQ_PUBLISH_STATUSto indicate success/failure.TRADITIONALBehave like a normal service and throw an exception on failure.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PublishToDefaultExchange.BehaviourvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PublishToDefaultExchange.Behaviour[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRADITIONAL
public static final PublishToDefaultExchange.Behaviour TRADITIONAL
Behave like a normal service and throw an exception on failure.
-
NO_EXCEPTION
public static final PublishToDefaultExchange.Behaviour NO_EXCEPTION
Never throw an exception and add values againstMetadataConstants.RMQ_PUBLISH_STATUSto indicate success/failure.
-
-
Method Detail
-
values
public static PublishToDefaultExchange.Behaviour[] 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 (PublishToDefaultExchange.Behaviour c : PublishToDefaultExchange.Behaviour.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PublishToDefaultExchange.Behaviour valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-