public class FixedTimeDelayStrategy extends Object implements DelayStrategy
Delay strategy that waits a constant amount of time between poll attempts.
| Constructor and Description |
|---|
FixedTimeDelayStrategy(long timeBetweenAttempsInMillis) |
| Modifier and Type | Method and Description |
|---|---|
long |
nextDelay(WaiterConfiguration.WaitContext context)
Returns the amount of time to wait (in millis) before making another poll attempt.
|
@ConstructorProperties(value="timeBetweenAttempsInMillis") public FixedTimeDelayStrategy(long timeBetweenAttempsInMillis)
public long nextDelay(WaiterConfiguration.WaitContext context)
DelayStrategyReturns the amount of time to wait (in millis) before making another poll attempt.
nextDelay in interface DelayStrategycontext - The context after the last attempt.Copyright © 2016–2024. All rights reserved.