12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Framework\MessageQueue\Topology;
- use Magento\Framework\Exception\LocalizedException;
- use Magento\Framework\MessageQueue\Topology\Config\ExchangeConfigItemInterface;
- use Magento\Framework\MessageQueue\Topology\Config\QueueConfigItemInterface;
- /**
- * Topology config interface provides access data declared in etc/queue_topology.xml
- *
- * @api
- * @since 102.0.1
- */
- interface ConfigInterface
- {
- /**
- * Get exchange configuration by exchange name.
- *
- * @param string $name
- * @param string $connection
- * @return ExchangeConfigItemInterface
- * @throws LocalizedException
- * @throws \LogicException
- * @since 102.0.1
- */
- public function getExchange($name, $connection);
- /**
- * Get list of all exchanges declared in the system.
- *
- * @return ExchangeConfigItemInterface[]
- * @throws \LogicException
- * @since 102.0.1
- */
- public function getExchanges();
- /**
- * Get list of all queues declared in the system.
- *
- * @return QueueConfigItemInterface[]
- * @throws \LogicException
- * @since 102.0.1
- */
- public function getQueues();
- }
|