Class AceMqTopologies

java.lang.Object
org.acemq.spring.boot.AceMqTopologies

public final class AceMqTopologies extends Object
Turns declared acemq.topology.* properties into a Topology.

Pure, and tested without a broker, for the same reason AceMqConnections is: the failure this guards against is a queue declared as classic when the file said quorum, and that is visible in the built object long before it is visible on a broker.

  • Method Details

    • from

      public static org.acemq.amqp.api.Topology from(AceMqProperties.Topology properties)
      Builds the topology.
      Parameters:
      properties - the acemq.topology block
      Returns:
      what the application expects to exist
      Throws:
      IllegalArgumentException - when a name is missing, because a queue with no name is a configuration mistake that would otherwise reach the broker as one, or when a quorum queue carries arguments the library cannot pass on
    • mode

      public static org.acemq.amqp.api.ApplyMode mode(AceMqProperties.Topology.Apply apply)
      Maps the property to the library's apply mode.
      Parameters:
      apply - what the properties asked for
      Returns:
      the library's equivalent