public class Retryer
extends java.lang.Object
| Constructor | Description |
|---|---|
Retryer(int perRetryDelay,
int maxDelay,
int statusUpdateInterval) |
Initializes a new instance of the
Retryer class. |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
continueRetry() |
Returns true if retrying should continue, false otherwise.
|
boolean |
updateStatus() |
Returns true if status update interval has been reached.
|
public Retryer(int perRetryDelay,
int maxDelay,
int statusUpdateInterval)
Retryer class.perRetryDelay - per retry delay (in ms).maxDelay - maximum amount of delay (in ms) before retry fails.statusUpdateInterval - time interval (in ms) at which status update would be made.java.lang.IllegalArgumentException - if perRetryDelay is zero or negative.java.lang.IllegalArgumentException - if maxDelay is less than or equal to perRetryDelay.java.lang.IllegalArgumentException - if statusUpdateInterval is zero or negative.public boolean continueRetry()
public boolean updateStatus()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.