How to obtain asynchronous response synchronously?

In some scenarios, the response comes asynchronously, like JMS, or, request via a synchronous socket connection and response via a corresponding asynchronous socket connection.

How to obtain asynchronous response synchronously?_第1张图片

Reference 1: http://www.javacodegeeks.com/2013/02/implementing-custom-future.html

你可能感兴趣的:(How to obtain asynchronous response synchronously?)