Skip to content

Conversation

@clebertsuconic
Copy link
Contributor

AMQP Flow control will disable consumer flow control (setting credits to null)
This will avoid a race checking flow control.

AMQP Flow control will disable consumer flow control (setting credits to null)
This will avoid a race checking flow control.
public HandleStatus handle(final MessageReference ref) throws Exception {
if (callback != null && !callback.hasCredits(this) || availableCredits != null && availableCredits.get() <= 0) {
// available credits can be set back to null with a flow control option.
AtomicInteger checkInteger = availableCredits;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@asfgit asfgit closed this in 3a8c25c Oct 24, 2018
@clebertsuconic clebertsuconic deleted the ARTEMIS-2146 branch July 30, 2019 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants