public void onUpdatedStats ( ActiveMQQueueJmxStats updatedStats ) { QueueStatisticsCollection queueStatisticsCollection ; synchronized ( this . queueStats ) { queueStatisticsCollection = this . queueStats . get ( updatedStats . getQueueName ( ) ) ; if ( queueStatisticsCollection == null ) { queueStatisticsCollection = new QueueStatisticsCollection ( updatedStats . getQueueName ( ) ) ; this . queueStats . put ( updatedStats . getQueueName ( ) , queueStatisticsCollection ) ; } } queueStatisticsCollection . onUpdatedStats ( updatedStats ) ; }
Update the statistics in the registry given one set of polled statistics . These statistics are assigned a timestamp equal to now .