@Override public void send(ProducerBrokerExchange producerExchange, Message messageSend) throws Exception { super.send(producerExchange, messageSend); ProducerId producerId = messageSend.getProducerId(); ActiveMQDestination destination = messageSend.getDestination(); synchronized (lock) { Set<ActiveMQDestination> destinations = producerDestinations.get(producerId); if (destinations == null) { destinations = new HashSet<ActiveMQDestination>(); } producerDestinations.put(producerId, destinations); destinations.add(destination); } }
public void send(ProducerBrokerExchange producerExchange, Message messageSend) throws Exception { super.send(producerExchange, messageSend); ProducerId producerId = messageSend.getProducerId(); ActiveMQDestination destination = messageSend.getDestination(); synchronized (lock) { Set<ActiveMQDestination> destinations = producerDestinations.get(producerId); if (destinations == null) { destinations = new HashSet<ActiveMQDestination>(); } producerDestinations.put(producerId, destinations); destinations.add(destination); } }
@Override public void send(ProducerBrokerExchange producerExchange, Message messageSend) throws Exception { super.send(producerExchange, messageSend); ProducerId producerId = messageSend.getProducerId(); ActiveMQDestination destination = messageSend.getDestination(); synchronized (lock) { Set<ActiveMQDestination> destinations = producerDestinations.get(producerId); if (destinations == null) { destinations = new HashSet<ActiveMQDestination>(); } producerDestinations.put(producerId, destinations); destinations.add(destination); } }
@Override public void send(ProducerBrokerExchange producerExchange, Message messageSend) throws Exception { super.send(producerExchange, messageSend); ProducerId producerId = messageSend.getProducerId(); ActiveMQDestination destination = messageSend.getDestination(); synchronized (lock) { Set<ActiveMQDestination> destinations = producerDestinations.get(producerId); if (destinations == null) { destinations = new HashSet<ActiveMQDestination>(); } producerDestinations.put(producerId, destinations); destinations.add(destination); } }
@Override public void send(ProducerBrokerExchange producerExchange, Message messageSend) throws Exception { super.send(producerExchange, messageSend); ProducerId producerId = messageSend.getProducerId(); ActiveMQDestination destination = messageSend.getDestination(); synchronized (lock) { Set<ActiveMQDestination> destinations = producerDestinations.get(producerId); if (destinations == null) { destinations = new HashSet<ActiveMQDestination>(); } producerDestinations.put(producerId, destinations); destinations.add(destination); } }