Package org.kiwiproject.retry
Class KiwiRetryer.KiwiRetryerBuilder<T>
java.lang.Object
org.kiwiproject.retry.KiwiRetryer.KiwiRetryerBuilder<T>
- Enclosing class:
- KiwiRetryer<T>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()exceptionLogLevel(org.slf4j.event.Level exceptionLogLevel) exceptionPredicate(Predicate<Exception> exceptionPredicate) exceptionPredicates(Collection<? extends Predicate<Exception>> exceptionPredicates) initialSleepTimeAmount(long initialSleepTimeAmount) initialSleepTimeUnit(TimeUnit initialSleepTimeUnit) maxAttempts(int maxAttempts) processingLogLevel(org.slf4j.event.Level processingLogLevel) resultPredicate(Predicate<T> resultPredicate) resultPredicates(Collection<? extends Predicate<T>> resultPredicates) retryIncrementTimeAmount(long retryIncrementTimeAmount) retryIncrementTimeUnit(TimeUnit retryIncrementTimeUnit) retryOnAllExceptions(boolean retryOnAllExceptions) retryOnAllRuntimeExceptions(boolean retryOnAllRuntimeExceptions) stopStrategy(org.kiwiproject.retry.StopStrategy stopStrategy) toString()waitStrategy(org.kiwiproject.retry.WaitStrategy waitStrategy)
-
Method Details
-
retryerId
- Returns:
this.
-
initialSleepTimeAmount
- Returns:
this.
-
initialSleepTimeUnit
- Returns:
this.
-
retryIncrementTimeAmount
- Returns:
this.
-
retryIncrementTimeUnit
- Returns:
this.
-
maxAttempts
- Returns:
this.
-
processingLogLevel
public KiwiRetryer.KiwiRetryerBuilder<T> processingLogLevel(org.slf4j.event.Level processingLogLevel) - Returns:
this.
-
exceptionLogLevel
- Returns:
this.
-
retryOnAllExceptions
- Returns:
this.
-
retryOnAllRuntimeExceptions
public KiwiRetryer.KiwiRetryerBuilder<T> retryOnAllRuntimeExceptions(boolean retryOnAllRuntimeExceptions) - Returns:
this.
-
exceptionPredicate
public KiwiRetryer.KiwiRetryerBuilder<T> exceptionPredicate(Predicate<Exception> exceptionPredicate) -
exceptionPredicates
public KiwiRetryer.KiwiRetryerBuilder<T> exceptionPredicates(Collection<? extends Predicate<Exception>> exceptionPredicates) -
clearExceptionPredicates
-
resultPredicate
-
resultPredicates
public KiwiRetryer.KiwiRetryerBuilder<T> resultPredicates(Collection<? extends Predicate<T>> resultPredicates) -
clearResultPredicates
-
stopStrategy
public KiwiRetryer.KiwiRetryerBuilder<T> stopStrategy(org.kiwiproject.retry.StopStrategy stopStrategy) - Returns:
this.
-
waitStrategy
public KiwiRetryer.KiwiRetryerBuilder<T> waitStrategy(org.kiwiproject.retry.WaitStrategy waitStrategy) - Returns:
this.
-
build
-
toString
-