| 123456789101112131415161718192021222324252627 | 
							- <?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 102.0.1
 
-  * @since 100.0.2
 
-  */
 
- interface PublisherInterface
 
- {
 
-     /**
 
-      * Publishes a message to a specific queue or exchange.
 
-      *
 
-      * @param string $topicName
 
-      * @param array|object $data
 
-      * @return null|mixed
 
-      * @throws \InvalidArgumentException If message is not formed properly
 
-      * @since 102.0.1
 
-      */
 
-     public function publish($topicName, $data);
 
- }
 
 
  |