/** * This adds the filter information from the given routing object to this * object's tables. This is used to merge routing information for putAll * operations. * @param eventRouting the routing information for a single putAll event */ public void addFilterInfo(FilterRoutingInfo eventRouting) { for (Map.Entry<InternalDistributedMember, FilterInfo> entry: eventRouting.serverFilterInfo.entrySet()) { FilterInfo existing = this.serverFilterInfo.get(entry.getKey()); if (existing == null) { existing = new FilterInfo(); this.serverFilterInfo.put(entry.getKey(), existing); } existing.addFilterInfo(entry.getValue()); } if (eventRouting.localFilterInfo != null) { if (this.localFilterInfo == null) { this.localFilterInfo = new FilterInfo(); } this.localFilterInfo.addFilterInfo(eventRouting.localFilterInfo); } this.memberWithFilterInfoExists |= eventRouting.memberWithFilterInfoExists; }
/** * This adds the filter information from the given routing object to this * object's tables. This is used to merge routing information for putAll * operations. * @param eventRouting the routing information for a single putAll event */ public void addFilterInfo(FilterRoutingInfo eventRouting) { for (Map.Entry<InternalDistributedMember, FilterInfo> entry: eventRouting.serverFilterInfo.entrySet()) { FilterInfo existing = this.serverFilterInfo.get(entry.getKey()); if (existing == null) { existing = new FilterInfo(); this.serverFilterInfo.put(entry.getKey(), existing); } existing.addFilterInfo(entry.getValue()); } if (eventRouting.localFilterInfo != null) { if (this.localFilterInfo == null) { this.localFilterInfo = new FilterInfo(); } this.localFilterInfo.addFilterInfo(eventRouting.localFilterInfo); } this.memberWithFilterInfoExists |= eventRouting.memberWithFilterInfoExists; }