title: How implement a retry mechanism for restTemplate
body: <p>I've implemented a java method which call to external services via a Resttemplate. As well,  i've implemented some additional business logic   also inside that method. How can i implement a retry mechanism for these rest calls. Need to consider below points as well.</p>
  
  <ol>
  <li>I cannot add a retry for entire method.</li>
  <li>It's better to add retry for rest calls(via resttemplate).</li>
  <li>There should be a way disable retry options for unwanted rest calls.  </li>
  </ol>