|
AMQP0-9-DesignNotes
has been edited by Kim van der Riet
(Jan 05, 2007).
(View changes)
Content:
Design notes for AMQP 0-9 implemenation
- Reserved field in Request frame must be set to 0.
- Request and Response constants were added to amqp.0-9.xml
- Request ID and Response ID must start at 1 for new channels.
- Response Mark must start at 0 for new channels.
- Content class encoding: For inline messages (first byte = 0), a null or empty byte array may be used.
- Content class encoding: For refs, (first byte = 1), an error or exception must be thrown if the byte array is either null or empty. It makes no sense to send a null ref.
- Content class decoding: For inline messages (first byte = 0), is is not possible to discriminate between the null array or empty array case above that encoded it. Decode as an empty byte array, not a null. (open for discussion)
- Content class: It may be possible to set a value for either/or null and empty values in the future - if a use-case can be made for it
|