| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.util.RetryHandler
public class 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 | |
|---|---|
| RetryHandler(int retriesAllowed,
             Task task)Create a new RetryingHandler. | |
| Method Summary | |
|---|---|
|  void | execute(Retryable exe,
        java.lang.String desc)Execute the Retryablecode with specified number of retries. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public RetryHandler(int retriesAllowed,
                    Task task)
retriesAllowed - how many times to retrytask - the Ant task that is is executed from, used for logging only| Method Detail | 
|---|
public void execute(Retryable exe,
                    java.lang.String desc)
             throws java.io.IOException
Retryable code with specified number of retries.
exe - the code to executedesc - some descriptive text for this piece of code, used for logging
java.io.IOException - if the number of retries has exceeded the allowed limit| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||