public class PollingStrategy extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
PollingStrategy.DelayStrategy
The hook for providing custom delay strategy to control the sleep time
between retries.
|
static interface |
PollingStrategy.RetryStrategy
The hook for providing custom condition on whether polling of a resource
should be retried.
|
Constructor and Description |
---|
PollingStrategy(PollingStrategy.RetryStrategy retryStrategy,
PollingStrategy.DelayStrategy delayStrategy)
Constructs a new PollingStrategy with RetryStrategy
and DelayStrategy defined
|
public PollingStrategy(PollingStrategy.RetryStrategy retryStrategy, PollingStrategy.DelayStrategy delayStrategy)
retryStrategy
- Retry condition on whether polling should be retried.
If null value is specified, the SDK' default retry
condition is used.Copyright © 2020. All rights reserved.