@Override protected void removeDemandSubscription(ConsumerId id) throws IOException { List<DemandSubscription> tmpList = new ArrayList<DemandSubscription>(); for (DemandSubscription ds : subscriptionMapByLocalId.values()) { if (ds.remove(id)) { LOG.debug("{} on {} from {} removed interest for: {} from {}", new Object[]{ configuration.getBrokerName(), localBroker, remoteBrokerName, id, ds }); } if (ds.isEmpty()) { tmpList.add(ds); } } for (DemandSubscription ds : tmpList) { removeSubscription(ds); LOG.debug("{} on {} from {} removed {}", new Object[]{ configuration.getBrokerName(), localBroker, remoteBrokerName, ds }); } } }
@Override protected void removeDemandSubscription(ConsumerId id) throws IOException { List<DemandSubscription> tmpList = new ArrayList<DemandSubscription>(); for (Iterator i = subscriptionMapByLocalId.values().iterator(); i.hasNext();) { DemandSubscription ds = (DemandSubscription)i.next(); if (ds.remove(id)) { if (LOG.isDebugEnabled()) { LOG.debug(configuration.getBrokerName() + " removing interest in sub on " + localBroker + " from " + remoteBrokerName + " : sub: " + id + " existing matched sub: " + ds.getRemoteInfo()); } } if (ds.isEmpty()) { tmpList.add(ds); } } for (Iterator<DemandSubscription> i = tmpList.iterator(); i.hasNext();) { DemandSubscription ds = i.next(); removeSubscription(ds); if (LOG.isDebugEnabled()) { LOG.debug(configuration.getBrokerName() + " removing sub on " + localBroker + " from " + remoteBrokerName + " : " + ds.getRemoteInfo()); } } }
@Override protected void removeDemandSubscription(ConsumerId id) throws IOException { List<DemandSubscription> tmpList = new ArrayList<DemandSubscription>(); for (DemandSubscription ds : subscriptionMapByLocalId.values()) { if (ds.remove(id)) { LOG.debug("{} on {} from {} removed interest for: {} from {}", new Object[]{ configuration.getBrokerName(), localBroker, remoteBrokerName, id, ds }); } if (ds.isEmpty()) { tmpList.add(ds); } } for (DemandSubscription ds : tmpList) { removeSubscription(ds); LOG.debug("{} on {} from {} removed {}", new Object[]{ configuration.getBrokerName(), localBroker, remoteBrokerName, ds }); } } }
@Override protected void removeDemandSubscription(ConsumerId id) throws IOException { List<DemandSubscription> tmpList = new ArrayList<DemandSubscription>(); for (DemandSubscription ds : subscriptionMapByLocalId.values()) { if (ds.remove(id)) { LOG.debug("{} on {} from {} removed interest for: {} from {}", new Object[]{ configuration.getBrokerName(), localBroker, remoteBrokerName, id, ds }); } if (ds.isEmpty()) { tmpList.add(ds); } } for (DemandSubscription ds : tmpList) { removeSubscription(ds); LOG.debug("{} on {} from {} removed {}", new Object[]{ configuration.getBrokerName(), localBroker, remoteBrokerName, ds }); } } }
@Override protected void removeDemandSubscription(ConsumerId id) throws IOException { List<DemandSubscription> tmpList = new ArrayList<DemandSubscription>(); for (DemandSubscription ds : subscriptionMapByLocalId.values()) { if (ds.remove(id)) { LOG.debug("{} on {} from {} removed interest for: {} from {}", new Object[]{ configuration.getBrokerName(), localBroker, remoteBrokerName, id, ds }); } if (ds.isEmpty()) { tmpList.add(ds); } } for (DemandSubscription ds : tmpList) { removeSubscription(ds); LOG.debug("{} on {} from {} removed {}", new Object[]{ configuration.getBrokerName(), localBroker, remoteBrokerName, ds }); } } }