I am calling Rest API using AsyncRestTemplate inside a loop. Once callback returns i need to access main
thread values. But the issue is i am calling AsyncRestTemplate inside a loop as below .
inside callback i need t oaccess list values. but issue is since this runs inside a loop when callback comes loop may in a different iteration. So how can i access the same values when i am calling
exchange methos ?