I need to make a web request to a RESTful server from Java. I would like for my Java code to handle the response asynchronously. I am looking for a framework which handles the threading and callbacks of the request.
By the way, I took a look at FutureTask and it does not appear to be what I need because it requires the client to wait for it to complete at some point. I'm looking for a callback upon completion.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…