private void notifySecondariesAndClient(String regionName, Object keyOfInterest, boolean isDurable, boolean receiveValues, int interestType) { // Notify all secondary proxies of a change in interest ClientInterestMessageImpl message = new ClientInterestMessageImpl( new EventID(this._cache.getDistributedSystem()), regionName, keyOfInterest, interestType, (byte) 0, isDurable, !receiveValues, ClientInterestMessageImpl.UNREGISTER); notifySecondariesOfInterestChange(message); // Modify interest registration if (keyOfInterest instanceof List) { unregisterClientInterest(regionName, (List) keyOfInterest, false); } else { unregisterClientInterest(regionName, keyOfInterest, interestType, false); } // Enqueue the interest unregistration message for the client. enqueueInterestRegistrationMessage(message); }
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); }