Your IP : 216.73.217.13


Current Path : /home/rtorresani/www/vendor/magento/framework-message-queue/Topology/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/framework-message-queue/Topology/ConfigInterface.php

<?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 103.0.0
 */
interface ConfigInterface
{
    /**
     * Get exchange configuration by exchange name.
     *
     * @param string $name
     * @param string $connection
     * @return ExchangeConfigItemInterface
     * @throws LocalizedException
     * @throws \LogicException
     * @since 103.0.0
     */
    public function getExchange($name, $connection);

    /**
     * Get list of all exchanges declared in the system.
     *
     * @return ExchangeConfigItemInterface[]
     * @throws \LogicException
     * @since 103.0.0
     */
    public function getExchanges();

    /**
     * Get list of all queues declared in the system.
     *
     * @return QueueConfigItemInterface[]
     * @throws \LogicException
     * @since 103.0.0
     */
    public function getQueues();
}