public class FixedDelayStrategy extends Object implements PollingStrategy.DelayStrategy
Constructor and Description |
---|
FixedDelayStrategy(int defaultDelayInSeconds)
Constructs a new FixedDelayStrategy with the given
default delay time
|
Modifier and Type | Method and 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)
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 © 2013 Amazon Web Services, Inc. All Rights Reserved.