[rabbitmq-discuss] (Lightweight) Publisher Confirms with the pika Python client
mark-erlang at aufflick.com
Mon Feb 21 22:42:24 GMT 2011
I have seen reference in passing on this list that all clients (except the C
client) support the lightweight publisher confirms (ie.
I can't quite work out what this means in terms of using the Python pika
client. Firstly, creating a channel like so:
parameters = pika.ConnectionParameters('foo')
connection = BlockingConnection(parameters)
channel = connection.channel()
I'm then not sure how to put it into confirm mode. The java api seems to
have a selectConfirm() method that I don't see in the pika docs or source.
Once I have been able to put the channel into confirm mode, I then somehow
need to set the ack and nack callbacks. I see the channel.add_callback()
method, but the auto-generated (I'm guessing) docs are fairly opaque.
Hoping someone can shed some light on this? I'm also wondering if there is
an easy way to do a blocking publish that waits for the ack/nack and returns
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss