Enum TopologyPlan.Kind

java.lang.Object
java.lang.Enum<TopologyPlan.Kind>
org.acemq.amqp.api.TopologyPlan.Kind
All Implemented Interfaces:
Serializable, Comparable<TopologyPlan.Kind>
Enclosing class:
TopologyPlan

public static enum TopologyPlan.Kind extends Enum<TopologyPlan.Kind>
What a plan proposes to do about one item.
  • Enum Constant Details

    • CREATE

      public static final TopologyPlan.Kind CREATE
      The item is missing and would be created.
    • PRESENT

      public static final TopologyPlan.Kind PRESENT
      The item already exists and would be left alone.
    • DRIFT

      public static final TopologyPlan.Kind DRIFT
      The item exists with settings the topology disagrees with.

      Not a change, because applying will not resolve it. AMQP forbids altering most queue arguments in place, so the declare fails and takes the channel with it. Someone has to decide between changing the topology to match the broker and migrating the queue.

    • UNKNOWN

      public static final TopologyPlan.Kind UNKNOWN
      The item exists and this transport cannot say whether it matches.

      Deliberately not PRESENT: an unanswered question reported as agreement is how drift goes unnoticed until a deployment.

  • Method Details

    • values

      public static TopologyPlan.Kind[] 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

      public static TopologyPlan.Kind 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 name
      NullPointerException - if the argument is null