PublisherConfigItemInterface.php 659 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\MessageQueue\Publisher\Config;
  7. /**
  8. * Instances of this class represent config items declared in etc/queue_publisher.xsd
  9. */
  10. interface PublisherConfigItemInterface
  11. {
  12. /**
  13. * Get publisher name.
  14. *
  15. * @return string
  16. */
  17. public function getTopic();
  18. /**
  19. * Check if connection disabled.
  20. *
  21. * @return bool
  22. */
  23. public function isDisabled();
  24. /**
  25. * Get publisher connection.
  26. *
  27. * @return PublisherConnectionInterface
  28. */
  29. public function getConnection();
  30. }