| java.lang.Object org.apache.tools.ant.util.RetryHandler
RetryHandler | public class RetryHandler (Code) | | 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 | |
public | RetryHandler(int retriesAllowed, Task task) Create a new RetryingHandler. |
Method Summary | |
public void | execute(Retryable exe, String desc) Execute the Retryable code with specified number of retries. |
RetryHandler | public RetryHandler(int retriesAllowed, Task task)(Code) | | Create a new RetryingHandler.
Parameters: retriesAllowed - how many times to retry Parameters: task - the Ant task that is is executed from, used for logging only |
execute | public void execute(Retryable exe, String desc) throws IOException(Code) | | Execute the Retryable code with specified number of retries.
Parameters: exe - the code to execute Parameters: desc - some descriptive text for this piece of code, used for logging throws: IOException - if the number of retries has exceeded the allowed limit |
|
|