boolean receiveUpdatesAsInvalidates) { FailoverInterestList fil = this.fils[getInterestLookupIndex(isDurable, receiveUpdatesAsInvalidates)];
/** * Registers interest in the input region name and key * * @param regionName The fully-qualified name of the region in which to register interest * @param keyOfInterest The key in which to register interest */ protected void registerClientInterest(String regionName, Object keyOfInterest, int interestType, boolean isDurable, boolean sendUpdatesAsInvalidates, boolean flushState) { ClientInterestList cil = this.cils[RegisterInterestTracker.getInterestLookupIndex(isDurable, false)]; cil.registerClientInterest(regionName, keyOfInterest, interestType, sendUpdatesAsInvalidates); if (flushState) { flushForInterestRegistration(regionName, this._cache.getDistributedSystem().getDistributedMember()); } HARegionQueue queue = getHARegionQueue(); if (queue != null) { // queue is null during initialization queue.setHasRegisteredInterest(true); } }
/** * Registers interest in the input region name and list of keys * * @param regionName The fully-qualified name of the region in which to register interest * @param keysOfInterest The list of keys in which to register interest */ protected void registerClientInterestList(String regionName, List keysOfInterest, boolean isDurable, boolean sendUpdatesAsInvalidates, boolean flushState) { // we only use two interest lists to map the non-durable and durable // identifiers to their interest settings ClientInterestList cil = this.cils[RegisterInterestTracker.getInterestLookupIndex(isDurable, false/* sendUpdatesAsInvalidates */)]; cil.registerClientInterestList(regionName, keysOfInterest, sendUpdatesAsInvalidates); if (getHARegionQueue() != null) { if (flushState) { flushForInterestRegistration(regionName, this._cache.getDistributedSystem().getDistributedMember()); } getHARegionQueue().setHasRegisteredInterest(true); } }