title: RESTTemplate waiting for API response
body: <p>In my Spring application I use RESTTemplate to get some information from external API. This API require that when you make a request you must to wait for response of it until you make another request. That's why I am wondering how to do this. Of course cannot use timer or something like that because response time from this API is different every time.</p>
  
  <p>Unfortunately, RESTTemplate is required for this app and i cannot change it.</p>