| Current Path : /var/www/clients/client3/web2/web/vendor/magento/framework-message-queue/ |
| Current File : /var/www/clients/client3/web2/web/vendor/magento/framework-message-queue/PublisherInterface.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\MessageQueue;
/**
* Producer to publish messages via a specific transport to a specific queue or exchange.
*
* @api
* @since 103.0.0
* @since 100.0.2
*/
interface PublisherInterface
{
/**
* Publishes a message to a specific queue or exchange.
*
* @param string $topicName
* @param mixed $data
* @return null|mixed
* @throws \InvalidArgumentException If message is not formed properly
* @since 103.0.0
*/
public function publish($topicName, $data);
}