|
2 | 2 |
|
3 | 3 | Consumer API |
4 | 4 | ============ |
5 | | -The :py:class:`Consumer <rejected.consumer.Consumer>` and |
6 | | -:py:class:`SmartConsumer <rejected.consumer.SmartConsumer>` classes to extend |
| 5 | +The :py:class:`Consumer <rejected.consumer.Consumer>` class to extend |
7 | 6 | for consumer applications. |
8 | 7 |
|
9 | | -While the :py:class:`Consumer <rejected.consumer.Consumer>` class provides all |
10 | | -the structure required for implementing a rejected consumer, |
11 | | -the :py:class:`SmartConsumer <rejected.consumer.SmartConsumer>` adds |
12 | | -functionality designed to make writing consumers even easier. When messages |
13 | | -are received by consumers extending :py:class:`SmartConsumer <rejected.consumer.SmartConsumer>`, |
14 | | -if the message's ``content_type`` property contains one of the supported mime-types, |
15 | | -the message body will automatically be deserialized, making the deserialized |
16 | | -message body available via the ``body`` attribute. Additionally, should one of |
17 | | -the supported ``content_encoding`` types (``gzip`` or ``bzip2``) be specified in the |
18 | | -message's property, it will automatically be decoded. |
| 8 | +The :py:class:`Consumer <rejected.consumer.Consumer>` class provides all |
| 9 | +the structure required for implementing a rejected consumer, including |
| 10 | +automatic deserialization of message bodies based on the message's |
| 11 | +``content_type`` property. When messages are received, if the message's |
| 12 | +``content_type`` property contains one of the supported mime-types, the message |
| 13 | +body will automatically be deserialized, making the deserialized message body |
| 14 | +available via the ``body`` attribute. Additionally, should one of the supported |
| 15 | +``content_encoding`` types (``gzip`` or ``bzip2``) be specified in the message's |
| 16 | +property, it will automatically be decoded. |
19 | 17 |
|
20 | 18 | Message Type Validation |
21 | 19 | ----------------------- |
@@ -51,7 +49,6 @@ Consumer Classes |
51 | 49 | :maxdepth: 1 |
52 | 50 |
|
53 | 51 | api_consumer |
54 | | - api_smart_consumer |
55 | 52 |
|
56 | 53 | Exceptions |
57 | 54 | ---------- |
|
0 commit comments