public class RetryHandler extends java.lang.Object
Retryableinterface) and executes that with possibility to retry the execution in case of IOException.
|Constructor and Description|
Create a new RetryingHandler.
|Modifier and Type||Method and Description|
public RetryHandler(int retriesAllowed, Task task)
retriesAllowed- how many times to retry
task- the Ant task that is is executed from, used for logging only
public void execute(Retryable exe, java.lang.String desc) throws java.io.IOException
Retryablecode with specified number of retries.
exe- the code to execute
desc- some descriptive text for this piece of code, used for logging
java.io.IOException- if the number of retries has exceeded the allowed limit