Package org.acemq.amqp.api
Class Topology
java.lang.Object
org.acemq.amqp.api.Topology
A topology as data: what exchanges, queues and bindings should exist.
Declared rather than performed. Because it is a value, it can be printed, diffed, reviewed in a pull request and applied by something other than the application that needs it, which is the difference between a topology you can reason about and a sequence of declare calls scattered through start-up code.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA binding that should exist.static final classBuilds aTopology.static final classAn exchange that should exist.static final classA queue that should exist. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe exchange a queue's dead letters are reached through.static final StringWhere the broker sends a message this queue rejects or lets expire.static final StringWhat routing key it is sent under, which a direct exchange matches against its bindings. -
Method Summary
Modifier and TypeMethodDescriptionbindings()static Topology.Builderdefine()queues()toString()
-
Field Details
-
DEAD_LETTER_EXCHANGE
The exchange a queue's dead letters are reached through.One exchange for the whole broker rather than one per queue, bound on each dead-letter queue's own name. It is the arrangement the Go, .NET, Python and Ruby libraries produce, so a broker shared between them already has it.
- See Also:
-
DEAD_LETTER_EXCHANGE_ARGUMENT
Where the broker sends a message this queue rejects or lets expire.- See Also:
-
DEAD_LETTER_ROUTING_KEY_ARGUMENT
What routing key it is sent under, which a direct exchange matches against its bindings.- See Also:
-
-
Method Details