Rafael Schloming wrote:
Jonathan Robie wrote:
If we wanted to make C++ symmetrical with Python, we might want to
add a constructor that allows delivery and message properties to be
specified - would this be useful?
It's easy to do this other ways, but symmetry between the languages
is good ....
IMHO this is an area where we are exposing a bit too much of the wire
protocol. I would think the natural thing to do for the API would be
to have at least the message properties accessible directly from the
message object. For python this would mean either keyword args to the
constructor or directly setting the properties:
# keyword args
msg = Message(reply_to=..., body=...)
# attributes
msg = Message()
msg.reply_to = ...
msg.body = ...
# mixed
msg = Message(reply_to=...)
msg.body = ...
Yes, I like that better ....
Jonathan
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]