org.apache.tools.ant.util
public class RetryHandler extends Object
Retryable
interface) and executes that with possibility to
retry the execution in case of IOException.
Constructor Summary | |
---|---|
RetryHandler(int retriesAllowed, Task task)
Create a new RetryingHandler.
|
Method Summary | |
---|---|
void | execute(Retryable exe, String desc)
Execute the Retryable code with specified number of retries.
|
Parameters: retriesAllowed how many times to retry task the Ant task that is is executed from, used for logging only
Retryable
code with specified number of retries.
Parameters: exe the code to execute desc some descriptive text for this piece of code, used for logging
Throws: IOException if the number of retries has exceeded the allowed limit