Implementations of the standard exchanges defined by the AMQ protocol (excluding the headers exchange).
copyright: |
|
---|---|
license: | BSD, see LICENSE for more details. |
The topic exchange routes messages based on words separated by dots, using wildcard characters * (any single word), and # (one or more words).
Get the corresponding regex for any routing key.
map of wildcard to regex conversions
The fanout exchange implements broadcast messaging by delivering copies of all messages to all queues bound the the exchange.
To support fanout the virtual channel needs to store the table as shared state. This requires that the Channel.supports_fanout attribute is set to true, and the Channel._queue_bind and Channel.get_table methods are implemented. See the redis backend for an example implementation of these methods.
Implements the specifics for an exchange type.
Parameters: | channel – AMQ Channel |
---|
Returns true if prev and exchange is equivalent.
Lookup all queues matching routing_key in exchange.
Returns: | default if no queues matched. |
---|
Returns tuple of (routing_key, regex, queue) to be stored for bindings to this exchange.