You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is to differentiate whether the connection is closed or timeout occurred while polling (returns null). If i would have just returned null then the application would still keep on polling from the queue even when the connection is closed.
I don't understand why throw connection exception for empty list? Why not just return null? Perhaps I'm not seeing something.
https://github.com/CS682-S22/dsd-pub-sub-project-anchitbhatia/blob/1cdf79e83816160c8ea636020afb70f7988ad19b/src/main/java/api/Consumer.java#L46-L48
The text was updated successfully, but these errors were encountered: