![]() |
Diffusion Apple API 6.11.5
Unified Client Library for iOS, tvOS and OS X / macOS
|
Defines a retry strategy.
A retry strategy will be applied when an initial to attempt to open a session fails with a SessionEstablishmentTransientException
The strategy is defined in terms of the number of milliseconds between retries and the maximum number of retries to attempt.
Class Methods | |
(instancetype) | + NO_RETRY |
Properties | |
NSUInteger | interval |
NSInteger | attempts |
Instance Methods | |
(instancetype) | - initWithInterval:andAttempts: |
(instancetype) | - initWithInterval: |
- (instancetype) initWithInterval: | (const NSUInteger) | interval |
Creates a new retry strategy that will retry indefinitely at the specified interval.
interval | the number of milliseconds before the first retry and between subsequent retries |
- (instancetype) initWithInterval: | (const NSUInteger) | interval | |
andAttempts: | (const NSInteger) | attempts | |
Creates a new retry strategy object.
interval | the number of milliseconds before the first retry and between subsequent retries |
attempts | the number of retry attempts |
+ (instancetype) NO_RETRY |
The retry strategy that indicates that no retry is to be attempted.
|
readnonatomicassign |
The maximum number of retries to attempt
|
readnonatomicassign |
The number of milliseconds between retries