This will only retrieve one record at a time right? I think it would be nice to have a while method that keeps retrieving records, and only exits** and does the Thread.sleep if it received a null record; in order to give some time for the broker to gather more records to send.
This will only retrieve one record at a time right? I think it would be nice to have a while method that keeps retrieving records, and only exits** and does the Thread.sleep if it received a null record; in order to give some time for the broker to gather more records to send.
https://github.com/CS682-S22/dsd-pub-sub-project-anchitbhatia/blob/1cdf79e83816160c8ea636020afb70f7988ad19b/src/main/java/api/PullBasedConsumer.java#L49-L65