Skip to content
Snippets Groups Projects
Commit 95d36df1 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

v2.1.0

parent f8d0b3f9
No related branches found
Tags v2.1.0
No related merge requests found
Pipeline #63927 passed with stages
in 3 minutes and 33 seconds
__version__ = '2.1.0a1'
__version__ = '2.1.0'
......@@ -106,7 +106,7 @@ class Consumer(Channeler):
:type fail_on_first_time_resource_locked: bool
:param body_receive_mode: how should message.body be received. This
has a performance impact
:type body_receive_mode: a property of :classs:`BodyReceiveMode`
:type body_receive_mode: a property of :class:`BodyReceiveMode`
:param arguments: a dictionary, extra set of arguments to be provided to RabbitMQ during binding.
Primarily to support streams.
"""
......@@ -231,8 +231,7 @@ class Consumer(Channeler):
self.receiver.on_gone()
self.receiver = None
def on_close(self, payload=None):
# type: (tp.Optional[coolamqp.framing.base.AMQPMethodPayload]) -> None
def on_close(self, payload=None): # type: (tp.Optional[coolamqp.framing.base.AMQPMethodPayload]) -> None
"""
Handle closing the channel. It sounds like an exception...
......@@ -244,7 +243,6 @@ class Consumer(Channeler):
hannel has been physically torn down
Note, this can be called multiple times, and eventually with None.
"""
if not self.cancelled:
self.cancelled = True
......
===========================
Glossary of all AMQP frames
===========================
Please note that this is automatically generated.
.. autoclass:: coolamqp.framing.definitions.ConnectionBlocked
:members:
......
......@@ -92,11 +92,11 @@ server. However, not providing a
.. autoclass:: coolamqp.attaches.Consumer
:members:
.. _anonymq:
Declaring anonymous queue
-------------------------
.. _anonymq:
In order to make use of an anonymous queue, you must first :meth:`coolamqp.clustering.Cluster.consume` it, since
:meth:`coolamqp.clustering.Cluster.declare` will use a separate channel, in which the queue will be invalid. It will
raise ValueError if you try to do that, anyway.
......@@ -106,7 +106,7 @@ Anonymous queues must be auto_delete and exclusive, ValueError will be raised ot
Who am I talking to?
--------------------
To identify the server you're talking to just connect and use :meth:`coolamqp.clustering.Cluster.properties`,
To identify the server you're talking to just connect and use :attr:`coolamqp.clustering.Cluster.properties`,
which will return the following class:
.. autoclass:: coolamqp.objects.ServerProperties
......
......@@ -32,4 +32,4 @@ Anonymous queues
----------------
They are back. Besides, anything that you will pass to :meth:`coolamqp.clustering.Cluster.consume` will be declared, be
it an exchange, a queue or such shit. This allows you to declare anonymous queues.
it an exchange, a queue or such shit. This allows you to declare anonymous queues. Refer to :ref:`anonymq` on how to do it.
......@@ -24,7 +24,7 @@ classifiers =
description = Very fast pure-Python AMQP client
author = Piotr Maślanka
author_email = pmaslanka@smok.co
url = https://github.com/smok-serwis/coolamqp
url = https://git.dms-serwis.com.pl/smokserwis/coolamqp
platforms =
posix
win32
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment