Package cern.nxcals.api.ingestion.retry
Class RetryConfig.RetryConfigBuilder
- java.lang.Object
-
- cern.nxcals.api.ingestion.retry.RetryConfig.RetryConfigBuilder
-
- Enclosing class:
- RetryConfig
public static class RetryConfig.RetryConfigBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RetryConfig.RetryConfigBuilder
acceptAttempt(java.util.function.Predicate<java.lang.Integer> acceptAttempt)
RetryConfig
build()
RetryConfig.RetryConfigBuilder
delayAttempt(java.util.function.Function<java.lang.Integer,java.time.Duration> delayAttempt)
RetryConfig.RetryConfigBuilder
shouldBackup(boolean shouldBackup)
java.lang.String
toString()
-
-
-
Method Detail
-
delayAttempt
public RetryConfig.RetryConfigBuilder delayAttempt(java.util.function.Function<java.lang.Integer,java.time.Duration> delayAttempt)
- Returns:
this
.
-
acceptAttempt
public RetryConfig.RetryConfigBuilder acceptAttempt(java.util.function.Predicate<java.lang.Integer> acceptAttempt)
- Returns:
this
.
-
shouldBackup
public RetryConfig.RetryConfigBuilder shouldBackup(boolean shouldBackup)
- Returns:
this
.
-
build
public RetryConfig build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-