BulkPublisherInterface.php 520 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\MessageQueue;
  7. /**
  8. * Producer to publish messages in bulk via a specific transport to a specific queue or exchange.
  9. */
  10. interface BulkPublisherInterface
  11. {
  12. /**
  13. * Publishes messages in bulk to a specific queue or exchange.
  14. *
  15. * @param string $topicName
  16. * @param array|object $data
  17. * @return null|mixed
  18. */
  19. public function publish($topicName, $data);
  20. }