public void create(Broker broker, ConnectionContext context, ActiveMQDestination destination) throws Exception { for (int i = 0; i < interceptors.length; i++) { interceptors[i].create(broker, context, destination); } }
public Destination intercept(Destination destination) { for (int i = 0; i < interceptors.length; i++) { destination = interceptors[i].intercept(destination); } return destination; }
public void remove(Destination destination) { for (int i = 0; i < interceptors.length; i++) { interceptors[i].remove(destination); } }
@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(); } } }
DestinationInterceptor destinationInterceptor = broker.getDestinationInterceptor(); if (destinationInterceptor != null) { destinationInterceptor.remove(dest);
@Override public Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws Exception { ActiveMQDestination destination = info.getDestination(); if (destinationInterceptor != null) { destinationInterceptor.create(this, context, destination); } inactiveDestinationsPurgeLock.readLock().lock(); try { return getRegion(destination).addConsumer(context, info); } finally { inactiveDestinationsPurgeLock.readLock().unlock(); } }
dest = destinationInterceptor.intercept(dest);
public void remove(Destination destination) { for (int i = 0; i < interceptors.length; i++) { interceptors[i].remove(destination); } }
public void create(Broker broker, ConnectionContext context, ActiveMQDestination destination) throws Exception { for (int i = 0; i < interceptors.length; i++) { interceptors[i].create(broker, context, destination); } }
public Destination intercept(Destination destination) { for (int i = 0; i < interceptors.length; i++) { destination = interceptors[i].intercept(destination); } return destination; }
public void remove(Destination destination) { for (int i = 0; i < interceptors.length; i++) { interceptors[i].remove(destination); } }
public void create(Broker broker, ConnectionContext context, ActiveMQDestination destination) throws Exception { for (int i = 0; i < interceptors.length; i++) { interceptors[i].create(broker, context, destination); } }
public Destination intercept(Destination destination) { for (int i = 0; i < interceptors.length; i++) { destination = interceptors[i].intercept(destination); } return destination; }
public void remove(Destination destination) { for (int i = 0; i < interceptors.length; i++) { interceptors[i].remove(destination); } }
public void create(Broker broker, ConnectionContext context, ActiveMQDestination destination) throws Exception { for (int i = 0; i < interceptors.length; i++) { interceptors[i].create(broker, context, destination); } }
public Destination intercept(Destination destination) { for (int i = 0; i < interceptors.length; i++) { destination = interceptors[i].intercept(destination); } return destination; }
public void remove(Destination destination) { for (int i = 0; i < interceptors.length; i++) { interceptors[i].remove(destination); } }
public void create(Broker broker, ConnectionContext context, ActiveMQDestination destination) throws Exception { for (int i = 0; i < interceptors.length; i++) { interceptors[i].create(broker, context, destination); } }
public Destination intercept(Destination destination) { for (int i = 0; i < interceptors.length; i++) { destination = interceptors[i].intercept(destination); } return destination; }
DestinationInterceptor destinationInterceptor = broker.getDestinationInterceptor(); if (destinationInterceptor != null) { destinationInterceptor.remove(dest);