Class RetryLimitedBackoffComputer
- java.lang.Object
-
- com.evolveum.midpoint.util.backoff.RetryLimitedBackoffComputer
-
- All Implemented Interfaces:
BackoffComputer
- Direct Known Subclasses:
ExponentialBackoffComputer
,LinearBackoffComputer
public abstract class RetryLimitedBackoffComputer extends Object implements BackoffComputer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.evolveum.midpoint.util.backoff.BackoffComputer
BackoffComputer.NoMoreRetriesException
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description long
computeDelay(int retryNumber)
protected abstract long
computeDelayWithinLimits(int retryNumber)
int
getMaxRetries()
-
-
-
Method Detail
-
getMaxRetries
public int getMaxRetries()
-
computeDelay
public long computeDelay(int retryNumber) throws BackoffComputer.NoMoreRetriesException
- Specified by:
computeDelay
in interfaceBackoffComputer
- Parameters:
retryNumber
- starts at 1- Throws:
BackoffComputer.NoMoreRetriesException
-
computeDelayWithinLimits
protected abstract long computeDelayWithinLimits(int retryNumber)
-
-