queue_base.xsd 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  9. <xs:complexType name="brokerType">
  10. <xs:annotation>
  11. <xs:documentation>
  12. @deprecated
  13. Broker configuration describes relations for topic, publisher, consumer, queue and exchange server
  14. </xs:documentation>
  15. </xs:annotation>
  16. <xs:sequence minOccurs="0" maxOccurs="unbounded">
  17. <xs:element name="queue" type="brokerQueueType" />
  18. </xs:sequence>
  19. <xs:attribute name="topic" type="xs:string" use="required"/>
  20. <xs:attribute name="type" type="xs:string" use="optional"/>
  21. <xs:attribute name="exchange" type="xs:string" use="optional"/>
  22. </xs:complexType>
  23. <xs:complexType name="brokerQueueType">
  24. <xs:annotation>
  25. <xs:documentation>
  26. @deprecated
  27. Queue element of the broker element
  28. </xs:documentation>
  29. </xs:annotation>
  30. <xs:attribute name="name" type="xs:string" use="required" />
  31. <xs:attribute name="handler" type="handlerType" use="optional" />
  32. <xs:attribute name="consumer" type="xs:string" use="required" />
  33. <xs:attribute name="consumerInstance" type="instanceType" use="optional" />
  34. <xs:attribute name="maxMessages" type="xs:integer" use="optional"/>
  35. </xs:complexType>
  36. <xs:simpleType name="instanceType">
  37. <xs:annotation>
  38. <xs:documentation>
  39. @deprecated
  40. Instance is expected in a format "Vendor\Module\Api\ServiceName".
  41. </xs:documentation>
  42. </xs:annotation>
  43. <xs:restriction base="xs:string">
  44. <xs:pattern value="[a-zA-Z0-9\\]+" />
  45. <xs:minLength value="4" />
  46. </xs:restriction>
  47. </xs:simpleType>
  48. <xs:simpleType name="handlerType">
  49. <xs:annotation>
  50. <xs:documentation>
  51. @deprecated
  52. Handler is expected in a format "Vendor\Module\Api\ServiceName::methodName".
  53. </xs:documentation>
  54. </xs:annotation>
  55. <xs:restriction base="xs:string">
  56. <xs:pattern value="[a-zA-Z0-9\\]+::[a-zA-Z0-9]+" />
  57. <xs:minLength value="5" />
  58. </xs:restriction>
  59. </xs:simpleType>
  60. </xs:schema>