codelipenghui commented on a change in pull request #14602:
URL: https://github.com/apache/pulsar/pull/14602#discussion_r826533524



##########
File path: 
pulsar-client-api/src/main/java/org/apache/pulsar/client/api/Producer.java
##########
@@ -199,4 +199,9 @@
      * @return the number of partitions per topic.
      */
     int getNumOfPartitions();
+
+    /**
+     * @return Get the result of the last sent data
+     */
+    CompletableFuture<Void> getOriginalLastSendFuture();

Review comment:
       I think this method is not for users, just be used in the test. For the 
flush  method, users already can get a `CompletableFuture<Void> response`, if 
we introduce a method here, looks like the usage should be:
   
   ```java
   producer.flush();
   producer.getOriginalLastSendFuture().then....
   ```




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