Interface RetryConfig.BuildableRetryConfig
- All Superinterfaces:
RetryConfig
- Enclosing interface:
RetryConfig
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.polaris.persistence.nosql.api.commit.RetryConfig
RetryConfig.BuildableRetryConfig -
Field Summary
Fields inherited from interface org.apache.polaris.persistence.nosql.api.commit.RetryConfig
DEFAULT_RETRIES, DEFAULT_RETRY_CONFIG, DEFAULT_RETRY_INITIAL_SLEEP_LOWER, DEFAULT_RETRY_INITIAL_SLEEP_UPPER, DEFAULT_RETRY_MAX_SLEEP, DEFAULT_TIMEOUT -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.polaris.persistence.nosql.api.commit.ImmutableBuildableRetryConfig.Builderbuilder()default FairRetriesTypeWithout mitigation, very frequently started retry-loops running against highly contended resources can result in some retry-loops invocations never making any progress and eventually time out.default DurationInitial lower bound for a retry-sleep duration for the retry-loop, defaults toRetryConfig.DEFAULT_RETRY_INITIAL_SLEEP_LOWER.default DurationInitial upper bound for a retry-sleep duration for the retry-loop, defaults toRetryConfig.DEFAULT_RETRY_INITIAL_SLEEP_UPPER.default DurationmaxSleep()Maximum retry-sleep duration, defaults toRetryConfig.DEFAULT_RETRY_MAX_SLEEP.default intretries()Maximum number of allowed retries, defaults to "10000".default Durationtimeout()Maximum allowed time until a retry-loop and commits fails with aRetryTimeoutException, defaults to "PT15S".
-
Method Details
-
builder
static org.apache.polaris.persistence.nosql.api.commit.ImmutableBuildableRetryConfig.Builder builder() -
timeout
Description copied from interface:RetryConfigMaximum allowed time until a retry-loop and commits fails with aRetryTimeoutException, defaults to "PT15S".- Specified by:
timeoutin interfaceRetryConfig
-
retries
@Default default int retries()Description copied from interface:RetryConfigMaximum number of allowed retries, defaults to "10000".- Specified by:
retriesin interfaceRetryConfig
-
initialSleepLower
Description copied from interface:RetryConfigInitial lower bound for a retry-sleep duration for the retry-loop, defaults toRetryConfig.DEFAULT_RETRY_INITIAL_SLEEP_LOWER. This value will be doubled after each retry, as long asRetryConfig.maxSleep()is not exceeded. A concrete sleep duration will be randomly chosen between the current lower and upper bounds.- Specified by:
initialSleepLowerin interfaceRetryConfig
-
initialSleepUpper
Description copied from interface:RetryConfigInitial upper bound for a retry-sleep duration for the retry-loop, defaults toRetryConfig.DEFAULT_RETRY_INITIAL_SLEEP_UPPER. This value will be doubled after each retry, as long asRetryConfig.maxSleep()is not exceeded. A concrete sleep duration will be randomly chosen between the current lower and upper bounds.- Specified by:
initialSleepUpperin interfaceRetryConfig
-
maxSleep
Description copied from interface:RetryConfigMaximum retry-sleep duration, defaults toRetryConfig.DEFAULT_RETRY_MAX_SLEEP.- Specified by:
maxSleepin interfaceRetryConfig
-
fairRetries
Description copied from interface:RetryConfigWithout mitigation, very frequently started retry-loops running against highly contended resources can result in some retry-loops invocations never making any progress and eventually time out.The default "fair retries type" helps in these scenarios with sacrificing the overall throughput too much.
- Specified by:
fairRetriesin interfaceRetryConfig
-