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