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 |
withSkipInitialSleep()
first sleep will be skipped.
|
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.Builder withSkipInitialSleep()
public ExponentialTimeBoundedRetry build()
Copyright © 2023. All Rights Reserved.