ExchangeInterface.php 523 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\MessageQueue\Bulk;
  7. /**
  8. * Interface for bulk exchange.
  9. *
  10. * @api
  11. * @since 102.0.1
  12. */
  13. interface ExchangeInterface
  14. {
  15. /**
  16. * Send messages in bulk to the queue.
  17. *
  18. * @param string $topic
  19. * @param \Magento\Framework\MessageQueue\EnvelopeInterface[] $envelopes
  20. * @return mixed
  21. * @since 102.0.1
  22. */
  23. public function enqueue($topic, array $envelopes);
  24. }