title: Retry Task Framework
body: <p>I have a number of situations where I need to retry a task n-times if it fails (sometimes with some form of back-off-before-retry logic). Generally, if an exception is thrown, the task should be retried up to the max-retry count.</p>
  
  <p>I can easily write something to do this fairly generically, but not wanting to re-invent the wheel I was wondering if anyone can recommend any frameworks for this. The only thing I have been able to find is: <a href="http://ant.apache.org/manual/Tasks/retry.html" rel="noreferrer">Ant Retry</a> but I don't want to use Ant tasks directly in my application.</p>
  
  <p>Thanks</p>