AZSRetryInfo Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | AZSRetryInfo.h AZSRetryInfo.m |
Overview
An AZSRetryInfo object represents retry information that the library will use to determine if and how to retry. It is the output of a RetryPolicy’s evaluate method.
Other Methods
– initWithShouldRetry:targetLocation:updatedLocationMode:retryInterval:
Initializes a fresh AZSRetryInfo instance.
- (instancetype)initWithShouldRetry:(BOOL)shouldRetry targetLocation:(AZSStorageLocation)targetLocation updatedLocationMode:(AZSStorageLocationMode)updatedLocationMode retryInterval:(NSTimeInterval)retryIntervalParameters
shouldRetry |
If the request should be retried. |
|---|---|
targetLocation |
The location for the next request. |
updatedLocationMode |
The location mode to use for the next request. |
retryInterval |
The NSTimeInterval to wait before retrying the operation. Only has meaning if shouldRetry is YES. |
Discussion
Initializes a fresh AZSRetryInfo instance.
Declared In
AZSRetryInfo.h
– initDontRetry
Initializes the RetryInfo with a default, don’t-retry instance.
- (instancetype)initDontRetryDiscussion
Initializes the RetryInfo with a default, don’t-retry instance.
Declared In
AZSRetryInfo.h
Other Methods
shouldRetry
If YES, then the request should be retried. Otherwise, the request should not be retried.
@property BOOL shouldRetryDiscussion
If YES, then the request should be retried. Otherwise, the request should not be retried.
Declared In
AZSRetryInfo.h
retryInterval
The NSTimeInterval to wait before retrying the operation. Only has meaning if shouldRetry is YES.
@property NSTimeInterval retryIntervalDiscussion
The NSTimeInterval to wait before retrying the operation. Only has meaning if shouldRetry is YES.
Declared In
AZSRetryInfo.h