ltsecurityinc安防产品在线商城代码
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Communication/etc/communication.xsd">
|
||||
<topic name="deprecated.config.async.bool.topic" request="bool">
|
||||
<handler name="handler1" type="Magento\TestModuleMessageQueueConfiguration\AsyncHandler" method="methodWithBoolParam"/>
|
||||
<handler name="handler2" type="Magento\TestModuleMessageQueueConfiguration\AsyncHandler" method="methodWithMixedParam"/>
|
||||
</topic>
|
||||
<topic name="deprecated.config.async.string.topic" request="string"/>
|
||||
<topic name="deprecated.config.sync.string.topic" request="string" response="string">
|
||||
<handler name="handler1" type="Magento\TestModuleMessageQueueConfiguration\SyncHandler" method="methodWithStringParam"/>
|
||||
</topic>
|
||||
<topic name="deprecated.config.sync.bool.topic" schema="Magento\TestModuleMessageQueueConfiguration\SyncHandler::methodWithBoolParam">
|
||||
<handler name="handler1" type="Magento\TestModuleMessageQueueConfiguration\SyncHandler" method="methodWithBoolParam"/>
|
||||
</topic>
|
||||
<topic name="overlapping.topic.declaration" request="string">
|
||||
<handler name="handler1" type="Magento\TestModuleMessageQueueConfiguration\AsyncHandler" method="methodWithStringParam"/>
|
||||
</topic>
|
||||
<topic name="anotherTopic1" request="string"/>
|
||||
<topic name="anotherTopic2" request="string"/>
|
||||
</config>
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
|
||||
<module name="Magento_TestModuleMessageQueueConfiguration" >
|
||||
</module>
|
||||
</config>
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/queue.xsd">
|
||||
<broker topic="deprecated.config.async.string.topic">
|
||||
<queue consumer="deprecatedConfigAsyncStringConsumer" name="deprecated.config.queue.1" consumerInstance="Magento\Framework\MessageQueue\BatchConsumer" maxMessages="200"/>
|
||||
<queue consumer="deprecatedConfigAsyncMixedConsumer" name="deprecated.config.queue.3" handler="Magento\TestModuleMessageQueueConfiguration\AsyncHandler::methodWithMixedParam"/>
|
||||
</broker>
|
||||
<broker topic="deprecated.config.async.bool.topic" type="db" exchange="deprecatedExchange">
|
||||
<queue consumer="deprecatedConfigAsyncBoolConsumer" name="deprecated.config.queue.2" />
|
||||
</broker>
|
||||
<broker topic="deprecated.config.sync.bool.topic" type="db" exchange="customExchange">
|
||||
<queue consumer="deprecatedConfigSyncBoolConsumer" name="deprecated.config.queue.4"/>
|
||||
</broker>
|
||||
<broker topic="overlapping.topic.declaration" exchange="overlappingDeprecatedExchange">
|
||||
<queue consumer="overlappingConsumerDeclaration" name="consumer.config.queue" consumerInstance="Magento\Framework\MessageQueue\BatchConsumer" maxMessages="222" handler="Magento\TestModuleMessageQueueConfiguration\AsyncHandler::methodWithMixedParam"/>
|
||||
</broker>
|
||||
</config>
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/consumer.xsd">
|
||||
<consumer name="consumer1" queue="queue1" handler="Magento\TestModuleMessageQueueConfiguration\HandlerOne::handlerMethodOne" consumerInstance="Magento\Framework\MessageQueue\BatchConsumer" connection="amqp" maxMessages="100"/>
|
||||
<consumer name="consumer2" queue="queue2" handler="Magento\TestModuleMessageQueueConfiguration\HandlerOne::handlerMethodTwo" consumerInstance="Magento\Framework\MessageQueue\BatchConsumer" connection="db"/>
|
||||
<consumer name="consumer3" queue="queue3" handler="Magento\TestModuleMessageQueueConfiguration\HandlerTwo::handlerMethodOne" consumerInstance="Magento\Framework\MessageQueue\BatchConsumer"/>
|
||||
<consumer name="consumer4" queue="queue4" handler="Magento\TestModuleMessageQueueConfiguration\HandlerOne::handlerMethodOne"/>
|
||||
<consumer name="consumer5" queue="queue5"/>
|
||||
<consumer name="overlappingConsumerDeclaration" queue="consumer.config.queue" connection="amqp"/>
|
||||
</config>
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/publisher.xsd">
|
||||
<publisher topic="topic.message.queue.config.01">
|
||||
<connection name="amqp" exchange="magento2" />
|
||||
<connection name="db" exchange="magento2" disabled="true" />
|
||||
</publisher>
|
||||
<publisher topic="topic.message.queue.config.02">
|
||||
<connection name="amqp" exchange="magento2" disabled="true"/>
|
||||
<connection name="db" exchange="magento2" disabled="true" />
|
||||
</publisher>
|
||||
<publisher topic="topic.message.queue.config.03" disabled="true" />
|
||||
<publisher topic="topic.message.queue.config.04">
|
||||
<connection name="amqp" />
|
||||
</publisher>
|
||||
<publisher topic="overlapping.topic.declaration"/>
|
||||
</config>
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/topology.xsd">
|
||||
<exchange name="magento-topic-based-exchange1" type="topic" connection="amqp">
|
||||
<binding id="topicBasedRouting1" topic="anotherTopic1" destinationType="queue" destination="topic-queue1">
|
||||
<arguments>
|
||||
<argument name="argument1" xsi:type="string">value</argument>
|
||||
</arguments>
|
||||
</binding>
|
||||
</exchange>
|
||||
|
||||
<exchange name="magento-topic-based-exchange2" connection="amqp">
|
||||
<binding id="topicBasedRouting2" topic="anotherTopic2" destination="topic-queue2" destinationType="queue">
|
||||
<arguments>
|
||||
<argument name="argument1" xsi:type="string">value</argument>
|
||||
</arguments>
|
||||
</binding>
|
||||
<arguments>
|
||||
<argument name="arrayValue" xsi:type="array">
|
||||
<item name="element01" xsi:type="string">10</item>
|
||||
<item name="element02" xsi:type="string">20</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</exchange>
|
||||
|
||||
<exchange name="magento-topic-based-exchange3" type="topic" connection="amqp" autoDelete="true" durable="false" internal="true" />
|
||||
|
||||
<exchange name="magento-topic-based-exchange4" type="topic" connection="amqp">
|
||||
<binding id="wildcard1" destination="topic-queue1" destinationType="queue" topic="#">
|
||||
<arguments>
|
||||
<argument name="test" xsi:type="string">one</argument>
|
||||
</arguments>
|
||||
</binding>
|
||||
<binding id="wildcard2" destination="topic-queue2" destinationType="queue" topic="*.*.*" />
|
||||
</exchange>
|
||||
|
||||
<exchange name="overlappingDeprecatedExchange" type="topic">
|
||||
<binding id="binding1" topic="overlapping.topic.declaration" destinationType="queue" destination="topology.config.queue" />
|
||||
<binding id="binding2" topic="deprecated.config.async.string.topic" destinationType="queue" destination="topology.config.queue" />
|
||||
</exchange>
|
||||
</config>
|
||||
Reference in New Issue
Block a user