Diffusion Apple API 6.12.1
Unified Client Library for iOS, tvOS and OS X / macOS
Loading...
Searching...
No Matches
PTDiffusionRetryStrategy Class Reference

Defines a retry strategy. More...

#include <PTDiffusionRetryStrategy.h>

Inheritance diagram for PTDiffusionRetryStrategy:

Instance Methods

(instancetype) - initWithInterval:andAttempts:
(instancetype) - initWithInterval:

Class Methods

(instancetype) + NO_RETRY

Properties

NSUInteger interval
NSInteger attempts

Detailed Description

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.

Since
6.9

Method Documentation

◆ initWithInterval:

- (instancetype) initWithInterval: (const NSUInteger) interval

Creates a new retry strategy that will retry indefinitely at the specified interval.

Parameters
intervalthe number of milliseconds before the first retry and between subsequent retries
Returns
the new retry strategy
Since
6.9

◆ initWithInterval:andAttempts:

- (instancetype) initWithInterval: (const NSUInteger) interval
andAttempts: (const NSInteger) attempts 

Creates a new retry strategy object.

Parameters
intervalthe number of milliseconds before the first retry and between subsequent retries
attemptsthe number of retry attempts
Returns
the new retry strategy
Since
6.9

◆ NO_RETRY

+ (instancetype) NO_RETRY

The retry strategy that indicates that no retry is to be attempted.

Property Documentation

◆ attempts

- (NSInteger) attempts
readnonatomicassign

The maximum number of retries to attempt

Since
6.9

◆ interval

- (NSUInteger) interval
readnonatomicassign

The number of milliseconds between retries

Since
6.9