[rabbitmq-discuss] 2.0: The Future of Pika

Matthias Radestock matthias at rabbitmq.com
Sun Mar 13 10:30:47 GMT 2011


Gavin M. Roy wrote:
>   - Calling methods like queue.declare will return a success indicator 
> and attributes returned in the Ok frame will be assigned to attributes 
> of the class.

What do instances of classes represent? Looks like they'd have to 
contain a mixture of attributes with completely different purposes. In 
particular there is a conflation of attributes for AMQP entities and 
AMQP commands.

For example, 'passive' is not an attribute of an AMQP queue; it's a flag 
on the queue.declare command. And 'message_count' is only something you 
get as a return of queue.declare, so accessing that attribute in any 
other context is meaningless.


Matthias.


More information about the rabbitmq-discuss mailing list