ff770d540d
AddressControl has 2 methods to get same metric. Both getNumberOfMessages() and getMessageCount() return the same metric albeit in different ways. Also, getNumberOfMessages() inspects both "local" and "remote" queue bindings which is wrong. This commit fixes these issues via the following changes: - Deprecate getNumberOfMessages(). - Change getNumberOfMessages() to invoke getMessageCount(). - Add a test to ensure getNumberOfMessages() does not count remote queue bindings. - Simplify getMessageCount(DurabilityType). |
||
---|---|---|
.. | ||
src | ||
pom.xml |