Shawyeok commented on code in PR #24731:
URL: https://github.com/apache/pulsar/pull/24731#discussion_r2342790185


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/PulsarService.java:
##########
@@ -478,8 +478,22 @@ public void close() throws PulsarServerException {
 
     /**
      * Close the current pulsar service. All resources are released.
+     * <p>
+     * This method is equivalent with {@code closeAsync(true)}.
+     *
+     * @see PulsarService#closeAsync(boolean)
      */
     public CompletableFuture<Void> closeAsync() {
+        return closeAsync(true);
+    }
+
+    /**
+     * Close the current pulsar service.
+     *
+     * @param waitForStop if true, waits for the web service to stop before 
returning from this method.
+     * @return a future which will be completed when the service is fully 
closed.
+     */
+    public CompletableFuture<Void> closeAsync(boolean waitForStop) {

Review Comment:
   Thanks, applied.



-- 
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: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to