Details
Description
SimpleAMQQueue uses an atomic reference to round robin the subscriptions when attempting to deliver a mesage to a subscription during enqueue operations. This reference will prevent the subscription being Garbage Collected when it is closed if the subscription was the last used and no more messages are enqueued. When unregistering a subscription, this reference should be updated if it points to the closing subscription.