123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Framework\MessageQueue;
- use Magento\Framework\Exception\LocalizedException;
- /**
- * @deprecated 102.0.1
- */
- interface ConfigInterface
- {
- const PUBLISHERS = 'publishers';
- const PUBLISHER_NAME = 'name';
- const PUBLISHER_CONNECTION = 'connection';
- const PUBLISHER_EXCHANGE = 'exchange';
- const TOPICS = 'topics';
- const TOPIC_NAME = 'name';
- const TOPIC_PUBLISHER = 'publisher';
- const TOPIC_SCHEMA = 'schema';
- const TOPIC_RESPONSE_SCHEMA = 'response_schema';
- const TOPIC_SCHEMA_TYPE = 'schema_type';
- const TOPIC_SCHEMA_VALUE = 'schema_value';
- const TOPIC_SCHEMA_TYPE_OBJECT = 'object';
- const TOPIC_SCHEMA_TYPE_METHOD = 'method_arguments';
- const SCHEMA_METHOD_PARAM_NAME = 'param_name';
- const SCHEMA_METHOD_PARAM_POSITION = 'param_position';
- const SCHEMA_METHOD_PARAM_TYPE = 'param_type';
- const SCHEMA_METHOD_PARAM_IS_REQUIRED = 'is_required';
- const CONSUMERS = 'consumers';
- const CONSUMER_NAME = 'name';
- const CONSUMER_QUEUE = 'queue';
- const CONSUMER_CONNECTION = 'connection';
- const CONSUMER_INSTANCE_TYPE = 'instance_type';
- const CONSUMER_CLASS = 'type';
- const CONSUMER_METHOD = 'method';
- const CONSUMER_MAX_MESSAGES = 'max_messages';
- const CONSUMER_HANDLERS = 'handlers';
- const CONSUMER_HANDLER_TYPE = 'type';
- const CONSUMER_HANDLER_METHOD = 'method';
- const CONSUMER_TYPE = 'consumer_type';
- const CONSUMER_TYPE_SYNC = 'sync';
- const CONSUMER_TYPE_ASYNC = 'async';
- const RESPONSE_QUEUE_PREFIX = 'responseQueue.';
- const BINDS = 'binds';
- const BIND_QUEUE = 'queue';
- const BIND_EXCHANGE = 'exchange';
- const BIND_TOPIC = 'topic';
- const BROKER_TOPIC = 'topic';
- const BROKER_TYPE = 'type';
- const BROKER_EXCHANGE = 'exchange';
- const BROKER_CONSUMERS = 'consumers';
- const BROKER_CONSUMER_NAME = 'name';
- const BROKER_CONSUMER_QUEUE = 'queue';
- const BROKER_CONSUMER_INSTANCE_TYPE = 'instance_type';
- const BROKER_CONSUMER_MAX_MESSAGES = 'max_messages';
- const BROKERS = 'brokers';
- /**
- * Map which allows optimized search of queues corresponding to the specified exchange and topic pair.
- */
- const EXCHANGE_TOPIC_TO_QUEUES_MAP = 'exchange_topic_to_queues_map';
- /**
- * Identify configured exchange for the provided topic.
- *
- * @param string $topicName
- * @return string
- * @throws LocalizedException
- * @see \Magento\Framework\MessageQueue\Publisher\ConfigInterface::getPublisher
- */
- public function getExchangeByTopic($topicName);
- /**
- * Identify a list of all queue names corresponding to the specified topic (and implicitly exchange).
- *
- * @param string $topic
- * @return string[]
- * @throws LocalizedException
- * @see \Magento\Framework\MessageQueue\Topology\ConfigInterface::getQueues
- */
- public function getQueuesByTopic($topic);
- /**
- * @param string $topic
- * @return string
- * @throws LocalizedException
- * @see \Magento\Framework\MessageQueue\Publisher\ConfigInterface::getPublisher
- */
- public function getConnectionByTopic($topic);
- /**
- * @param string $consumer
- * @return string
- * @throws LocalizedException
- * @see \Magento\Framework\MessageQueue\Consumer\ConfigInterface::getConsumer
- */
- public function getConnectionByConsumer($consumer);
- /**
- * Identify which option is used to define message schema: data interface or service method params
- *
- * @param string $topic
- * @return string
- * @see \Magento\Framework\Communication\ConfigInterface::getTopic
- */
- public function getMessageSchemaType($topic);
- /**
- * Get all consumer names
- *
- * @return string[]
- * @see \Magento\Framework\MessageQueue\Consumer\ConfigInterface::getConsumers
- */
- public function getConsumerNames();
- /**
- * Get consumer configuration
- *
- * @param string $name
- * @return array|null
- * @see \Magento\Framework\MessageQueue\Consumer\ConfigInterface::getConsumer
- */
- public function getConsumer($name);
- /**
- * Get queue binds
- *
- * @return array
- * @see \Magento\Framework\MessageQueue\Topology\ConfigInterface::getExchanges
- */
- public function getBinds();
- /**
- * Get publishers
- *
- * @return array
- * @see \Magento\Framework\MessageQueue\Publisher\ConfigInterface::getPublishers
- */
- public function getPublishers();
- /**
- * Get consumers
- *
- * @return array
- * @see \Magento\Framework\MessageQueue\Consumer\ConfigInterface::getConsumers
- */
- public function getConsumers();
- /**
- * Get topic config
- *
- * @param string $name
- * @return array
- * @see \Magento\Framework\Communication\ConfigInterface::getTopic
- * @see \Magento\Framework\MessageQueue\Publisher\ConfigInterface::getPublisher
- */
- public function getTopic($name);
- /**
- * Get published config
- * @param string $name
- *
- * @return array
- * @see \Magento\Framework\MessageQueue\Publisher\ConfigInterface::getPublisher
- */
- public function getPublisher($name);
- /**
- * Get queue name for response
- *
- * @param string $topicName
- * @return string
- * @see \Magento\Framework\MessageQueue\Rpc\ResponseQueueNameBuilder::getQueueName
- */
- public function getResponseQueueName($topicName);
- }
|