I\'m developing a spring boot application in which there is a business requirement in which I have to keep calling an external API until I get Http status 204 No Content fro