albertogpz commented on a change in pull request #6052:
URL: https://github.com/apache/geode/pull/6052#discussion_r589356087
##########
File path:
geode-core/src/main/java/org/apache/geode/internal/cache/wan/serial/SerialGatewaySenderQueue.java
##########
@@ -847,7 +855,14 @@ private EventsAndLastKey
peekEventsWithTransactionId(TransactionId transactionId
}
}
- EventsAndLastKey getElementsMatching(Predicate condition, Predicate
stopCondition, long lastKey) {
+ /**
+ * This method returns a list of objects that fulfill the matchingPredicate
+ * If a matching object also fulfills the endPredicate then the method
+ * stops looking for more matching objects.
+ */
+ List<KeyAndEventPair>
getElementsMatching(Predicate<InternalGatewayQueueEvent> condition,
+ Predicate<InternalGatewayQueueEvent> stopCondition,
+ long lastKey) {
Object object;
List elementsMatching = new ArrayList<>();
Review comment:
ok
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]