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 &amp;&amp; !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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to