scala: poll a http server via post for result -


i using scala in sprak streaming. need write client (in multi-threaded environment) first sends http post request (text file payload) server returns id , have call same server id status. second post call return total line processed till time (like progress tracking). have keep polling until returns count length of file sent(i.e. line processed).

what efficient way implement polling second post call? using closeablehttpclient poolinghttpclientconnectionmanager http requests org.apache.http.impl package.


Comments

Popular posts from this blog

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -