@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { ActiveMQDestination destination = info.getDestination(); if (destination != null) { inactiveDestinationsPurgeLock.readLock().lock(); try { getRegion(destination).removeProducer(context, info); } finally { inactiveDestinationsPurgeLock.readLock().unlock(); } } }
@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { ActiveMQDestination destination = info.getDestination(); synchronized (purgeInactiveDestinationsTask) { if (destination != null) { switch (destination.getDestinationType()) { case ActiveMQDestination.QUEUE_TYPE: queueRegion.removeProducer(context, info); break; case ActiveMQDestination.TOPIC_TYPE: topicRegion.removeProducer(context, info); break; case ActiveMQDestination.TEMP_QUEUE_TYPE: tempQueueRegion.removeProducer(context, info); break; case ActiveMQDestination.TEMP_TOPIC_TYPE: tempTopicRegion.removeProducer(context, info); break; } } } }
@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { ActiveMQDestination destination = info.getDestination(); if (destination != null) { inactiveDestinationsPurgeLock.readLock().lock(); try { getRegion(destination).removeProducer(context, info); } finally { inactiveDestinationsPurgeLock.readLock().unlock(); } } }
@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { ActiveMQDestination destination = info.getDestination(); if (destination != null) { inactiveDestinationsPurgeLock.readLock().lock(); try { getRegion(destination).removeProducer(context, info); } finally { inactiveDestinationsPurgeLock.readLock().unlock(); } } }
@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { ActiveMQDestination destination = info.getDestination(); if (destination != null) { inactiveDestinationsPurgeLock.readLock().lock(); try { getRegion(destination).removeProducer(context, info); } finally { inactiveDestinationsPurgeLock.readLock().unlock(); } } }