You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by GitBox <gi...@apache.org> on 2022/06/02 22:51:33 UTC
[GitHub] [geode] kirklund commented on a diff in pull request #7323: GEODE-9997: added ParallelQueueSetPossibleDuplicateMessage
kirklund commented on code in PR #7323:
URL: https://github.com/apache/geode/pull/7323#discussion_r888469788
##########
geode-core/src/main/java/org/apache/geode/cache/wan/GatewaySender.java:
##########
@@ -215,6 +216,34 @@ enum OrderPolicy {
*/
void startWithCleanQueue();
+
+ /**
+ * Prepare GatewaySender for closing of Cache.
+ *
+ * <p>
+ * Implementation of new API in ParallelGatewaySenderImpl:
+ *
+ *
+ * <pre>
+ * public void prepareForStop() {
+ * if (!isRunning()) {
+ * return;
+ * }
+ * pause();
+ * if (eventProcessor != null && !eventProcessor.isStopped()) {
+ * eventProcessor.prepareForStopProcessing();
+ * }
+ * }
+ * </pre>
+ *
+ *
+ * <p>
+ * Invoked at closing of cache.
+ *
+ */
+ @Experimental
+ void prepareForStop();
Review Comment:
All experimental APIs should have javadoc and annotation explanation strings. Please see [MetricsPublishingService ](https://github.com/apache/geode/blob/develop/geode-core/src/main/java/org/apache/geode/metrics/MetricsPublishingService.java) as an example.
--
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: notifications-unsubscribe@geode.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org