|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taleo.integration.client.customstep.util.RetryHelper
public final class RetryHelper
Helper class for retry processing.
Field Summary | |
---|---|
static int |
NB_RETRIES_DEFAULT
|
static int |
RETRY_FACTOR_DEFAULT
|
static int |
RETRY_INTERVAL_DEFAULT
|
Constructor Summary | |
---|---|
RetryHelper(int nbRetries,
int retryFactor,
int retryInterval)
Constructs a RetryHelper instance. |
Method Summary | |
---|---|
int |
getCurrentAttempt()
Returns the current attempt. |
int |
getLastWaited()
Returns the last waited time (seconds). |
int |
getMaxAttempts()
Returns the maximum number of attempts. |
int |
getNbRetries()
Returns the number of retries. |
int |
getRetryFactor()
Returns the retryFactor. |
int |
getRetryInterval()
Returns the retry interval. |
void |
waitForNextRetry()
If the execution of the method did not complete and we still have retry attempts, wait for the next retry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NB_RETRIES_DEFAULT
public static final int RETRY_INTERVAL_DEFAULT
public static final int RETRY_FACTOR_DEFAULT
Constructor Detail |
---|
public RetryHelper(int nbRetries, int retryFactor, int retryInterval)
RetryHelper
instance.
nbRetries
- max number of retry attempts.retryFactor
- multiplication factor for retrying jobs.retryInterval
- time to wait (seconds).Method Detail |
---|
public int getLastWaited()
public int getMaxAttempts()
public int getCurrentAttempt()
public int getNbRetries()
public int getRetryFactor()
public int getRetryInterval()
public void waitForNextRetry()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |