ds.add(info.getConsumerId()); if (isForcedDurable) { forcedDurableRemoteId.add(info.getConsumerId());
protected boolean addToAlreadyInterestedConsumers(ConsumerInfo info) { // search through existing subscriptions and see if we have a match boolean matched = false; for (Iterator i = subscriptionMapByLocalId.values().iterator(); i.hasNext();) { DemandSubscription ds = (DemandSubscription)i.next(); DestinationFilter filter = DestinationFilter.parseFilter(ds.getLocalInfo().getDestination()); if (filter.matches(info.getDestination())) { if (LOG.isDebugEnabled()) { LOG.debug(configuration.getBrokerName() + " matched (add interest) to exsting sub for: " + ds.getRemoteInfo() + " with sub: " + info.getConsumerId()); } // add the interest in the subscription // ds.add(ds.getRemoteInfo().getConsumerId()); if (checkPaths(info.getBrokerPath(), ds.getRemoteInfo().getBrokerPath())) { ds.add(info.getConsumerId()); } matched = true; // continue - we want interest to any existing // DemandSubscriptions } } return matched; }
ds.add(info.getConsumerId()); if (isForcedDurable) { forcedDurableRemoteId.add(info.getConsumerId());
ds.add(info.getConsumerId()); if (isForcedDurable) { forcedDurableRemoteId.add(info.getConsumerId());
ds.add(info.getConsumerId()); if (isForcedDurable) { forcedDurableRemoteId.add(info.getConsumerId());