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/09 18:36:59 UTC

[GitHub] [geode] mivanac commented on a diff in pull request #7323: GEODE-9997: added ParallelQueueSetPossibleDuplicateMessage

mivanac commented on code in PR #7323:
URL: https://github.com/apache/geode/pull/7323#discussion_r893840797


##########
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:
   Since changes are only for internal use, impacts moved to InternalGatewaySender interface.



-- 
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