Package org.apache.tools.ant.util
Class RetryHandler
java.lang.Object
org.apache.tools.ant.util.RetryHandler
A simple utility class to take a piece of code (that implements
 
Retryable interface) and executes that with possibility to
 retry the execution in case of IOException.- 
Constructor Summary
Constructors - 
Method Summary
 
- 
Constructor Details
- 
RetryHandler
Create a new RetryingHandler.- Parameters:
 retriesAllowed- how many times to retrytask- the Ant task that is is executed from, used for logging only
 
 - 
 - 
Method Details
- 
execute
Execute theRetryablecode with specified number of retries.- Parameters:
 exe- the code to executedesc- some descriptive text for this piece of code, used for logging- Throws:
 IOException- if the number of retries has exceeded the allowed limit
 
 -