Github user grs commented on a diff in the pull request:
https://github.com/apache/qpid/pull/9#discussion_r68299289
--- Diff: qpid/cpp/src/qpid/broker/amqp/Outgoing.cpp ---
@@ -79,6 +79,9 @@ OutgoingFromQueue::OutgoingFromQueue(Broker& broker,
const std::string& source,
void OutgoingFromQueue::init()
{
+ // observe queue for changes to track undeliverable messages
+
queue->getObservers().add(boost::shared_ptr<QueueObserver>(shared_from_this()));
+
--- End diff --
If possible, I'd really like to make the tracking lazy, only activating if
actually requested/needed, and only then registering the queue observer and
tracking the messages.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]