GitHub user lhotari edited a comment on the discussion: async/sync mode in 
pulsar producer and consumer

> 1. For synchronous mode we use send() method 
> 2. For asynchronous mode we use sendAsync() method

@ragaur-tibco yes.

> if answer to the above two points is yes then why is send() method internally 
> calling the sendAsync() method

@ragaur-tibco I don't really understand the point of the question. Do you have 
a problem with this implementation? What are your expectations for send and 
sendAsync? Is there some expectation that isn't met?

With the current implementation in the Pulsar Java client, it simply fulfills 
the requirements when send() internally calls sendAsync() method. Perhaps you 
have different expectations or requirements.


GitHub link: 
https://github.com/apache/pulsar/discussions/22382#discussioncomment-8982733

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to