public static class ExponentialTimeBoundedRetry.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ExponentialTimeBoundedRetry |
build() |
ExponentialTimeBoundedRetry.Builder |
withInitialSleep(java.time.Duration initialSleep) |
ExponentialTimeBoundedRetry.Builder |
withMaxDuration(java.time.Duration maxDuration) |
ExponentialTimeBoundedRetry.Builder |
withMaxSleep(java.time.Duration maxSleep) |
ExponentialTimeBoundedRetry.Builder |
withTimeCtx(TimeContext timeCtx) |
public ExponentialTimeBoundedRetry.Builder withTimeCtx(TimeContext timeCtx)
timeCtx
- time contextpublic ExponentialTimeBoundedRetry.Builder withMaxDuration(java.time.Duration maxDuration)
maxDuration
- max total duration to retry forpublic ExponentialTimeBoundedRetry.Builder withInitialSleep(java.time.Duration initialSleep)
initialSleep
- initial sleep interval between retriespublic ExponentialTimeBoundedRetry.Builder withMaxSleep(java.time.Duration maxSleep)
maxSleep
- maximum sleep interval between retriespublic ExponentialTimeBoundedRetry build()
Copyright © 2023. All Rights Reserved.