Package org.acemq.amqp.api
Enum ApplyMode
- All Implemented Interfaces:
Serializable,Comparable<ApplyMode>
How much a topology apply is allowed to do.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCreate what is missing and leave everything else alone.Work out the plan and change nothing.Change nothing and fail if anything is missing. -
Method Summary
-
Enum Constant Details
-
DRY_RUN
Work out the plan and change nothing.What a build should run in review, and what a cautious start-up should log.
-
CREATE_ONLY
Create what is missing and leave everything else alone.The default, and deliberately not destructive: AMQP forbids changing most queue arguments in place, so a change that looks like an edit is really a delete and a recreate, which discards messages. That is a migration, and a migration should be a decision rather than a side effect of a start-up.
-
VALIDATE
Change nothing and fail if anything is missing.For an environment where topology is provisioned separately and an application finding it absent is a deployment error rather than something to fix silently.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-