| Constructor and Description |
|---|
AdaptiveDelay(Delay backoffStrategy,
Duration cooldown) |
| Modifier and Type | Method and Description |
|---|---|
Duration |
calculate()
Returns the next delay in the backoff sequence.
|
public Duration calculate()
If the cooldown duration has elapsed since the previous delay returned by this method, the backoff sequence is reset and this method returns a duration of zero.
Copyright © 2021 Couchbase, Inc.. All rights reserved.