ExchangeConfigItemInterface.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\MessageQueue\Topology\Config;
  7. use \Magento\Framework\MessageQueue\Topology\Config\ExchangeConfigItem\BindingInterface;
  8. /**
  9. * Instances of this class represent config items declared in etc/queue_topology.xsd
  10. */
  11. interface ExchangeConfigItemInterface
  12. {
  13. /**
  14. * Get exchange name.
  15. *
  16. * @return string
  17. */
  18. public function getName();
  19. /**
  20. * Get exchange type.
  21. *
  22. * @return string
  23. */
  24. public function getType();
  25. /**
  26. * Get exchange connection.
  27. *
  28. * @return string
  29. */
  30. public function getConnection();
  31. /**
  32. * Check if exchange is durable.
  33. *
  34. * @return bool
  35. */
  36. public function isDurable();
  37. /**
  38. * Check if exchange is auto delete.
  39. *
  40. * @return bool
  41. */
  42. public function isAutoDelete();
  43. /**
  44. * Check if exchange is internal.
  45. *
  46. * @return bool
  47. */
  48. public function isInternal();
  49. /**
  50. * Get exchange bindings.
  51. *
  52. * @return BindingInterface[]
  53. */
  54. public function getBindings();
  55. /**
  56. * Get exchange arguments
  57. *
  58. * @return array
  59. */
  60. public function getArguments();
  61. }