Set the multiplier between retry delays.
Set jitter of current backoff.
If jitter is enabled, ExponentialBackoff will add a random jitter in [0, min_delay)
to current delay.
Set max_times of current backoff.
Backoff will return None if max times are reached.
Retry layer
Add retry for temporary failed operations.
Notes
This layer will retry failed operations when [
Error::is_temporary] returns true. If the operation still failed, this layer will set error toPersistentwhich means error has been retried.writeandblocking_writedon't support retry so far, visit this issue for more details.Examples