@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { next.removeProducer(context, info); }
/** * Removes a Producer. * * @param context * the environment the operation is being executed under. * @throws Exception * TODO */ @Override @SuppressWarnings("unchecked") public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { destinationsLock.readLock().lock(); try { for (Destination dest : (Set<Destination>) destinationMap.unsynchronizedGet(info.getDestination())) { dest.removeProducer(context, info); } } finally { destinationsLock.readLock().unlock(); } }
@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { next.removeProducer(context, info); }
@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { next.removeProducer(context, info); }
@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { next.removeProducer(context, info); }
public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { next.removeProducer(context, info); }
/** * Removes a Producer. * * @param context * the environment the operation is being executed under. * @throws Exception * TODO */ @Override @SuppressWarnings("unchecked") public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { destinationsLock.readLock().lock(); try { for (Destination dest : (Set<Destination>) destinationMap.unsynchronizedGet(info.getDestination())) { dest.removeProducer(context, info); } } finally { destinationsLock.readLock().unlock(); } }
/** * Removes a Producer. * * @param context * the environment the operation is being executed under. * @throws Exception * TODO */ public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { synchronized (destinationsMutex) { for (Iterator iter = destinationMap.get(info.getDestination()).iterator(); iter.hasNext();) { Destination dest = (Destination) iter.next(); dest.removeProducer(context, info); } } }
/** * Removes a Producer. * * @param context * the environment the operation is being executed under. * @throws Exception * TODO */ @Override @SuppressWarnings("unchecked") public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { destinationsLock.readLock().lock(); try { for (Destination dest : (Set<Destination>) destinationMap.unsynchronizedGet(info.getDestination())) { dest.removeProducer(context, info); } } finally { destinationsLock.readLock().unlock(); } }
/** * Removes a Producer. * * @param context * the environment the operation is being executed under. * @throws Exception * TODO */ @Override @SuppressWarnings("unchecked") public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { destinationsLock.readLock().lock(); try { for (Destination dest : (Set<Destination>) destinationMap.unsynchronizedGet(info.getDestination())) { dest.removeProducer(context, info); } } finally { destinationsLock.readLock().unlock(); } }