Package interlok.rabbitmq
Enum Class PublishToDefaultExchange.Behaviour
java.lang.Object
java.lang.Enum<PublishToDefaultExchange.Behaviour>
interlok.rabbitmq.PublishToDefaultExchange.Behaviour
- All Implemented Interfaces:
Serializable,Comparable<PublishToDefaultExchange.Behaviour>,Constable
- Enclosing class:
- PublishToDefaultExchange
public static enum PublishToDefaultExchange.Behaviour
extends Enum<PublishToDefaultExchange.Behaviour>
Controls behaviour when publishing the messsage.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNever throw an exception and add values againstMetadataConstants.RMQ_PUBLISH_STATUSto indicate success/failure.Behave like a normal service and throw an exception on failure. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static PublishToDefaultExchange.Behaviour[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TRADITIONAL
Behave like a normal service and throw an exception on failure. -
NO_EXCEPTION
Never throw an exception and add values againstMetadataConstants.RMQ_PUBLISH_STATUSto indicate success/failure.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-