use of org.apache.activemq.artemis.core.persistence.AddressBindingInfo in project activemq-artemis by apache.
the class PostOfficeJournalLoader method initAddresses.
@Override
public void initAddresses(Map<Long, AddressBindingInfo> addressBindingInfosMap, List<AddressBindingInfo> addressBindingInfos) throws Exception {
for (AddressBindingInfo addressBindingInfo : addressBindingInfos) {
addressBindingInfosMap.put(addressBindingInfo.getId(), addressBindingInfo);
AddressInfo addressInfo = new AddressInfo(addressBindingInfo.getName()).setRoutingTypes(addressBindingInfo.getRoutingTypes());
addressInfo.setId(addressBindingInfo.getId());
postOffice.reloadAddressInfo(addressInfo);
}
}
Aggregations