| Modifier and Type | Field and Description |
|---|---|
| private Task | nestedTask
task to execute n times |
| private int | retryCount
set retryCount to 1 by default |
| private int | retryDelay
The time to wait between retries in milliseconds, default to 0. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | addTask(Task
the task to retry. t)Implements org. |
| public void | |
| public void | |
| public void | setRetryDelay(int
the time between retries. retryDelay)set the delay between retries (in milliseconds) |
| nestedTask | back to summary |
|---|---|
| private Task nestedTask task to execute n times | |
| retryCount | back to summary |
|---|---|
| private int retryCount set retryCount to 1 by default | |
| retryDelay | back to summary |
|---|---|
| private int retryDelay The time to wait between retries in milliseconds, default to 0. | |
| Retry | back to summary |
|---|---|
| public Retry() | |
| addTask | back to summary |
|---|---|
| public synchronized void addTask(Task t) Implements org. set the task | |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. perform the work
| |
| setRetryCount | back to summary |
|---|---|
| public void setRetryCount(int n) set the number of times to retry the task
| |
| setRetryDelay | back to summary |
|---|---|
| public void setRetryDelay(int retryDelay) set the delay between retries (in milliseconds)
| |