/** * Registers client interest in the input region and list of keys. * * @param regionName The name of the region of interest * @param keysOfInterest The list of keys of interest * @param membershipID The <code>ClientProxyMembershipID</code> of the client no longer interested * in this <code>Region</code> and key */ public void registerClientInterest(String regionName, List keysOfInterest, ClientProxyMembershipID membershipID, boolean isDurable, boolean sendUpdatesAsInvalidates, boolean manageEmptyRegions, int regionDataPolicy, boolean flushState) throws IOException, RegionDestroyedException { CacheClientProxy proxy = getClientProxy(membershipID, true); if (logger.isDebugEnabled()) { logger.debug("CacheClientNotifier: Client {} registering interest in: {} -> {}", proxy, regionName, keysOfInterest); } if (proxy == null) { throw new IOException( "CacheClientProxy for this client is no longer on the server , so registerInterest operation is unsuccessful"); } proxy.registerClientInterestList(regionName, keysOfInterest, isDurable, sendUpdatesAsInvalidates, flushState); if (manageEmptyRegions) { updateMapOfEmptyRegions(proxy.getRegionsWithEmptyDataPolicy(), regionName, regionDataPolicy); } }
updateMapOfEmptyRegions(proxy.getRegionsWithEmptyDataPolicy(), regionName, regionDataPolicy);
ccn.updateMapOfEmptyRegions( proxy.getRegionsWithEmptyDataPolicy(), cQuery.getBaseRegionName(), regionDataPolicy);