-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove double synchronized * Polish `receiveForReply` Change `receiveMessage` from method argument to local variable since it's always passed as null * Remove exception casting in `consumerDelivery` Since `doExecute()` eventually will still wrap all exceptions using `RabbitExceptionTranslator.convertRabbitAccessException(e)` As now exceptions are being re-thrown move consumer cancelling logic inside finally block * Guard `setReplyAddress()` Use same lock as `evaluateFastReplyTo()` is guarded via `RabbitTemplate` lock in `doSendAndReceive()` * Remove locking on `publisherConfirmChannels` map When getting unconfirmed messages count/correlation data remove locking on entire map since concurrent map iterator's are thread safe and underlying Channel's implementation (`PublisherCallbackChannelImpl`) already use synchronization in expire and `getPendingConfirmsCount()` * Extract common consumer canceling logic * Access `directReplyToContainers` map only via lock * remove double checking for null container * change copyright * Polishing - PR comments * Revert "Access directReplyToContainers map only via lock" This reverts commit 489df24
- Loading branch information
1 parent
18b2090
commit 84ca73e
Showing
1 changed file
with
37 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters