queue_topology.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/topology.xsd">
  9. <exchange name="magento-topic-based-exchange1" type="topic" connection="amqp">
  10. <binding id="topicBasedRouting1" topic="anotherTopic1" destinationType="queue" destination="topic-queue1">
  11. <arguments>
  12. <argument name="argument1" xsi:type="string">value</argument>
  13. </arguments>
  14. </binding>
  15. </exchange>
  16. <exchange name="magento-topic-based-exchange2" connection="amqp">
  17. <binding id="topicBasedRouting2" topic="anotherTopic2" destination="topic-queue2" destinationType="queue">
  18. <arguments>
  19. <argument name="argument1" xsi:type="string">value</argument>
  20. </arguments>
  21. </binding>
  22. <arguments>
  23. <argument name="arrayValue" xsi:type="array">
  24. <item name="element01" xsi:type="string">10</item>
  25. <item name="element02" xsi:type="string">20</item>
  26. </argument>
  27. </arguments>
  28. </exchange>
  29. <exchange name="magento-topic-based-exchange3" type="topic" connection="amqp" autoDelete="true" durable="false" internal="true" />
  30. <exchange name="magento-topic-based-exchange4" type="topic" connection="amqp">
  31. <binding id="wildcard1" destination="topic-queue1" destinationType="queue" topic="#">
  32. <arguments>
  33. <argument name="test" xsi:type="string">one</argument>
  34. </arguments>
  35. </binding>
  36. <binding id="wildcard2" destination="topic-queue2" destinationType="queue" topic="*.*.*" />
  37. </exchange>
  38. <exchange name="overlappingDeprecatedExchange" type="topic" connection="amqp">
  39. <binding id="binding1" topic="overlapping.topic.declaration" destinationType="queue" destination="topology.config.queue" />
  40. <binding id="binding2" topic="deprecated.config.async.string.topic" destinationType="queue" destination="topology.config.queue" />
  41. </exchange>
  42. </config>