@Override public Set<Destination> getDestinations(ActiveMQDestination destination) { try { return getRegion(destination).getDestinations(destination); } catch (JMSException jmse) { return Collections.emptySet(); } }
@Override public Set <Destination> getDestinations(ActiveMQDestination destination) { switch (destination.getDestinationType()) { case ActiveMQDestination.QUEUE_TYPE: return queueRegion.getDestinations(destination); case ActiveMQDestination.TOPIC_TYPE: return topicRegion.getDestinations(destination); case ActiveMQDestination.TEMP_QUEUE_TYPE: return tempQueueRegion.getDestinations(destination); case ActiveMQDestination.TEMP_TOPIC_TYPE: return tempTopicRegion.getDestinations(destination); default: return Collections.emptySet(); } }
@Override public Set<Destination> getDestinations(ActiveMQDestination destination) { try { return getRegion(destination).getDestinations(destination); } catch (JMSException jmse) { return Collections.emptySet(); } }
@Override public Set<Destination> getDestinations(ActiveMQDestination destination) { try { return getRegion(destination).getDestinations(destination); } catch (JMSException jmse) { return Collections.emptySet(); } }
@Override public Set<Destination> getDestinations(ActiveMQDestination destination) { try { return getRegion(destination).getDestinations(destination); } catch (JMSException jmse) { return Collections.emptySet(); } }
public void purgeQueue(ActiveMQDestination destination) throws Exception { Set destinations = getManagedBroker().getQueueRegion().getDestinations(destination); for (Iterator i = destinations.iterator(); i.hasNext();) { Destination dest = (Destination) i.next(); if (dest instanceof Queue) { Queue regionQueue = (Queue) dest; regionQueue.purge(); } } }