liangyepianzhou commented on PR #21271:
URL: https://github.com/apache/pulsar/pull/21271#issuecomment-1751949561

   >If `refreshAsync` method is just to handle this case, you must note the 
limitation of `refreshAsync` that it cannot guarantee latest value is read 
unless there is no messages sent to the topic before the future is complete. 
i.e. it's meaningful only when the caller takes control of all producers to the 
topic.
   
   Yes, It will be clarified in the API comments.
   
   It should be noted that this is actually the greatest assurance we can 
provide right now. Because there might be continuous messages being sent, and 
the rate of sending messages might be faster than the rate of receiving 
messages, we actually can't guarantee to get the latest message. All we can do 
is help you refresh once and get the latest value at the current point in time.
   


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