@Override public void reapplyInterceptor() { destinationsLock.writeLock().lock(); try { DestinationInterceptor destinationInterceptor = broker.getDestinationInterceptor(); Map<ActiveMQDestination, Destination> map = getDestinationMap(); for (ActiveMQDestination key : map.keySet()) { Destination destination = map.get(key); if (destination instanceof CompositeDestinationFilter) { destination = ((CompositeDestinationFilter) destination).next; } if (destinationInterceptor != null) { destination = destinationInterceptor.intercept(destination); } getDestinationMap().put(key, destination); Destination prev = destinations.put(key, destination); if (prev == null) { updateRegionDestCounts(key, 1); } } } finally { destinationsLock.writeLock().unlock(); } } }
@Override public void reapplyInterceptor() { destinationsLock.writeLock().lock(); try { DestinationInterceptor destinationInterceptor = broker.getDestinationInterceptor(); Map<ActiveMQDestination, Destination> map = getDestinationMap(); for (ActiveMQDestination key : map.keySet()) { Destination destination = map.get(key); if (destination instanceof CompositeDestinationFilter) { destination = ((CompositeDestinationFilter) destination).next; } if (destinationInterceptor != null) { destination = destinationInterceptor.intercept(destination); } getDestinationMap().put(key, destination); Destination prev = destinations.put(key, destination); if (prev == null) { updateRegionDestCounts(key, 1); } } } finally { destinationsLock.writeLock().unlock(); } } }
@Override public void reapplyInterceptor() { destinationsLock.writeLock().lock(); try { DestinationInterceptor destinationInterceptor = broker.getDestinationInterceptor(); Map<ActiveMQDestination, Destination> map = getDestinationMap(); for (ActiveMQDestination key : map.keySet()) { Destination destination = map.get(key); if (destination instanceof CompositeDestinationFilter) { destination = ((CompositeDestinationFilter) destination).next; } if (destinationInterceptor != null) { destination = destinationInterceptor.intercept(destination); } getDestinationMap().put(key, destination); Destination prev = destinations.put(key, destination); if (prev == null) { updateRegionDestCounts(key, 1); } } } finally { destinationsLock.writeLock().unlock(); } } }
@Override public void reapplyInterceptor() { destinationsLock.writeLock().lock(); try { DestinationInterceptor destinationInterceptor = broker.getDestinationInterceptor(); Map<ActiveMQDestination, Destination> map = getDestinationMap(); for (ActiveMQDestination key : map.keySet()) { Destination destination = map.get(key); if (destination instanceof CompositeDestinationFilter) { destination = ((CompositeDestinationFilter) destination).next; } if (destinationInterceptor != null) { destination = destinationInterceptor.intercept(destination); } getDestinationMap().put(key, destination); Destination prev = destinations.put(key, destination); if (prev == null) { updateRegionDestCounts(key, 1); } } } finally { destinationsLock.writeLock().unlock(); } } }