PollingStrategy.DelayStrategy
public class FixedDelayStrategy extends Object implements PollingStrategy.DelayStrategy
Constructor | Description |
---|---|
FixedDelayStrategy(int defaultDelayInSeconds) |
Constructs a new FixedDelayStrategy with the given
default delay time
|
Modifier and Type | Method | Description |
---|---|---|
void |
delayBeforeNextRetry(PollingStrategyContext pollingStrategyContext) |
Defines a default way of delaying the polling bound by
the default delay associated with the corresponding
waiter definition
|
public FixedDelayStrategy(int defaultDelayInSeconds)
public void delayBeforeNextRetry(PollingStrategyContext pollingStrategyContext) throws InterruptedException
delayBeforeNextRetry
in interface PollingStrategy.DelayStrategy
pollingStrategyContext
- Provides the polling context required to define custom delayInterruptedException
PollingStrategyContext
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.