public class ExponentialWaitStrategy extends Object implements WaitStrategy
WaitStrategy
with exponentially increasing sleep time.Constructor and Description |
---|
ExponentialWaitStrategy(long initialWait,
long maxWait) |
Modifier and Type | Method and Description |
---|---|
long |
sleepTime(long attempt)
Returns the time to wait until the next attempt.
|
public ExponentialWaitStrategy(long initialWait, long maxWait)
public long sleepTime(long attempt)
WaitStrategy
0
.sleepTime
in interface WaitStrategy
attempt
- The number of the last attempt.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.