You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 29, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: docs/changelog.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,12 @@
2
2
3
3
All notable changes to this library will be documented in this file.
4
4
5
+
## [4.3.0] - Will be drafted
6
+
7
+
### Changed
8
+
9
+
-**Breaking!**`BatchMessageHandler` has been removed, `BaseBatchMessageHandler` is now one and only base class for handling messages in batches. `HandleMessages` method of `BaseBatchMessageHandler` gets a collection of messages as `BasicDeliverEventArgs` instead of bytes.
Copy file name to clipboardExpand all lines: docs/message-consumption.md
+7-42Lines changed: 7 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -314,13 +314,13 @@ The message handling process organized as follows:
314
314
315
315
### Batch message handlers
316
316
317
-
There are also a feature that you can use in case of necessity of handling messages in batches.
318
-
First of all you have to create a class that inherits a `BatchMessageHandler` class.
317
+
There is a feature that you can use in case of necessity of handling messages in batches.
318
+
First of all you have to create a class that inherits `BaseBatchMessageHandler`.
319
319
You have to set up values for `QueueName` and `PrefetchCount` properties. These values are responsible for the queue that will be read by the message handler, and the size of batches of messages. You can also set a `MessageHandlingPeriod` property value and the method `HandleMessage` will be executed repeatedly so messages in unfilled batches could be processed too, but keep in mind that this property is optional.
320
320
Be aware that batch message handlers **do not declare queues**, so if it does not exist an exception will be thrown. Either declare manually or using RabbitMqClient configuration features.
The message handler will create a separate connection and use it for reading messages.
393
-
When the message collection is full to the size of `PrefetchCount` they are passed to the `HandleMessage` method.
394
-
Both `BaseBatchMessageHandler` and `BatchMessageHandler` implement `IDisposable` interface, so you can use it for release of resources.
395
-
396
-
Use this method of getting messages only when you sure that the number of messages that pass through this queue is really huge. Otherwise, messages could stack in the temporary collection of messages waiting to get in full.
361
+
When the message collection is full to the size of `PrefetchCount` it will be passed to the `HandleMessage` method.
397
362
398
363
For message production features see the [Previous page](message-production.md)
Copy file name to clipboardExpand all lines: readme.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -240,11 +240,11 @@ For more information about `appsettings.json` and manual configuration features,
240
240
## Batch message handlers
241
241
242
242
There are also a feature that you can use in case of necessity of handling messages in batches.
243
-
First of all you have to create a class that inherits a `BatchMessageHandler` class.
243
+
First of all you have to create a class that inherits a `BaseBatchMessageHandler` class.
244
244
You have to set up values for `QueueName` and `PrefetchCount` properties. These values are responsible for the queue that will be read by the message handler, and the size of batches of messages.
0 commit comments