code: public Map<String, ActiveMQQueueStats> getQueueStats() {
          Map<String, ActiveMQQueueStats> result;
  
          result = new TreeMap<>();
  
          synchronized ( this.queueStats ) {
              for (QueueStatisticsCollection queueStatisticsCollection : this.queueStats.values()) {
                  result.put(queueStatisticsCollection.getQueueName(), queueStatisticsCollection.getQueueTotalStats());
              }
          }
  
          return result;
      }
docs: Retrieve statistics for all of the queues.
  
  @return map of aggregated statistics for each queue in the registry.