Package org.acemq.spring.boot
Class AceMqTopologies
java.lang.Object
org.acemq.spring.boot.AceMqTopologies
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 Summary
Modifier and TypeMethodDescriptionstatic org.acemq.amqp.api.Topologyfrom(AceMqProperties.Topology properties) Builds the topology.static org.acemq.amqp.api.ApplyModeMaps the property to the library's apply mode.
-
Method Details
-
from
Builds the topology.- Parameters:
properties- theacemq.topologyblock- 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
Maps the property to the library's apply mode.- Parameters:
apply- what the properties asked for- Returns:
- the library's equivalent
-