mhansonp commented on code in PR #7442:
URL: https://github.com/apache/geode/pull/7442#discussion_r843050085
##########
geode-core/src/main/java/org/apache/geode/cache/client/internal/RegisterInterestTracker.java:
##########
@@ -302,6 +304,33 @@ private RegionInterestEntry readRegionInterests(String
regionName,
return mapOfInterest.get(regionName);
}
+ public boolean hasInterestsWithResultPolicy(final @NotNull String
regionName, boolean isDurable,
+ final @NotNull InterestResultPolicy interestResultPolicy) {
+ // Iterate InterestTypes searching for any with the input
interestResultPolicy
Review Comment:
Done
##########
geode-core/src/main/java/org/apache/geode/cache/client/internal/RegisterInterestTracker.java:
##########
@@ -302,6 +304,33 @@ private RegionInterestEntry readRegionInterests(String
regionName,
return mapOfInterest.get(regionName);
}
+ public boolean hasInterestsWithResultPolicy(final @NotNull String
regionName, boolean isDurable,
+ final @NotNull InterestResultPolicy interestResultPolicy) {
+ // Iterate InterestTypes searching for any with the input
interestResultPolicy
+ return Stream.of(InterestType.values())
+ .anyMatch(interestType -> hasInterestsWithResultPolicy(regionName,
isDurable,
+ interestResultPolicy, interestType));
+ }
+
+ public boolean hasInterestsWithResultPolicy(final @NotNull String
regionName, boolean isDurable,
+ final @NotNull InterestResultPolicy interestResultPolicy,
+ final @NotNull InterestType interestType) {
+ // Check the RegionInterestEntries with receiveUpdatesAsInvalidates both
true and false
Review Comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]