if (rs.next()) { res.getBrokerList().get(i).setTotalmessagesent(rs.getLong(1)); res.getBrokerList().get(i).setTotalconsumers(rs.getLong(2)); res.getBrokerList().get(i).setTotalmessagesrecieved(rs.getLong(3));
if (rs.next()) { res.getBrokerList().get(i).setTotalmessagesent(rs.getLong(1)); res.getBrokerList().get(i).setTotalconsumers(rs.getLong(2)); res.getBrokerList().get(i).setTotalmessagesrecieved(rs.getLong(3));