break;
}
}
if (subBroker != null){
// update model of this sub broker
ModelUpdateMessage message = (ModelUpdateMessage)msg;
subBroker.setRegisteredProducers(message.getProducers());
subBroker.setRegisteredConsumers(message.getConsumers());
System.out.println("Recieved and stored update from SubBroker "+tcpInfo.getHost()+":"+tcpInfo.getPort());
}
}
}