Package fr.gouv.vitam.common.retryable
Class RetryableParameters
- java.lang.Object
-
- fr.gouv.vitam.common.retryable.RetryableParameters
-
public class RetryableParameters extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RetryableParameters(int nbRetry, int firstAttemptWaitingTime, int waitingTime, int randomRangeSleep, java.util.concurrent.TimeUnit timeUnit)
RetryableParameters(int nbRetry, int firstAttemptWaitingTime, int waitingTime, int randomRangeSleep, java.util.concurrent.TimeUnit timeUnit, VitamLogLevel level)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getFirstAttemptWaitingTime()
java.util.function.Consumer<java.lang.String>
getLog()
int
getNbRetry()
int
getRandomRangeSleep()
java.util.concurrent.TimeUnit
getTimeUnit()
int
getWaitingTime()
-
-
-
Constructor Detail
-
RetryableParameters
public RetryableParameters(int nbRetry, int firstAttemptWaitingTime, int waitingTime, int randomRangeSleep, java.util.concurrent.TimeUnit timeUnit, VitamLogLevel level)
-
RetryableParameters
public RetryableParameters(int nbRetry, int firstAttemptWaitingTime, int waitingTime, int randomRangeSleep, java.util.concurrent.TimeUnit timeUnit)
-
-
Method Detail
-
getNbRetry
public int getNbRetry()
-
getFirstAttemptWaitingTime
public int getFirstAttemptWaitingTime()
-
getWaitingTime
public int getWaitingTime()
-
getRandomRangeSleep
public int getRandomRangeSleep()
-
getTimeUnit
public java.util.concurrent.TimeUnit getTimeUnit()
-
getLog
public java.util.function.Consumer<java.lang.String> getLog()
-
-