proxy.registerClientInterest(regionName, keyOfInterest, interestType, isDurable, sendUpdatesAsInvalidates, flushState);
private void notifySecondariesAndClient(String regionName, Object keyOfInterest, InterestResultPolicy policy, boolean isDurable, boolean receiveValues, int interestType) { // Create a client interest message for the keyOfInterest ClientInterestMessageImpl message = new ClientInterestMessageImpl( new EventID(this._cache.getDistributedSystem()), regionName, keyOfInterest, interestType, policy.getOrdinal(), isDurable, !receiveValues, ClientInterestMessageImpl.REGISTER); // Notify all secondary proxies of a change in interest notifySecondariesOfInterestChange(message); // Modify interest registration if (keyOfInterest instanceof List) { registerClientInterestList(regionName, (List) keyOfInterest, isDurable, !receiveValues, true); } else { registerClientInterest(regionName, keyOfInterest, interestType, isDurable, !receiveValues, true); } // Enqueue the interest registration message for the client. enqueueInterestRegistrationMessage(message); }
message.getForUpdatesAsInvalidates(), true); } else { registerClientInterest(regionName, key, interestType, message.getIsDurable(), message.getForUpdatesAsInvalidates(), true);