Every subscription is a CoreQueue. You would be able to access those properties at each subscription's queue.
Bill Schwanitz wrote:
I'd like to get the total number of messages that have passed through a non-durable Topic. I have examined the example of message counting for a Queue. It uses the QueueControl.listMessageCounter() method. However, the TopicControl class does not have a similar listMessageCounter() method.
Is there a way to get the count of messages that have passed through a non-durable Topic, or is this feature not yet available?
What you're asking is a count of messages routed through a particular address.
This is not available, messages added counts are only available on a per queue basis.