ExchangeInterface.php 487 B

1234567891011121314151617181920212223242526
  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. * Interface message Exchange
  9. *
  10. * @api
  11. * @since 102.0.1
  12. * @since 100.0.2
  13. */
  14. interface ExchangeInterface
  15. {
  16. /**
  17. * Send message
  18. *
  19. * @param string $topic
  20. * @param EnvelopeInterface $envelope
  21. * @return mixed
  22. * @since 102.0.1
  23. */
  24. public function enqueue($topic, EnvelopeInterface $envelope);
  25. }