Diffusion Apple API  6.9.0
Unified Client Library for iOS, tvOS and OS X / macOS
 All Classes Files Functions Variables Enumerations Enumerator Properties Pages
Class Methods | Properties | Instance Methods | List of all members
PTDiffusionRetryStrategy Class Reference

Introduction

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
Inheritance diagram for PTDiffusionRetryStrategy:

Class Methods

(instancetype) + NO_RETRY
 

Properties

NSUInteger interval
 
NSInteger attempts
 

Instance Methods

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

Method Documentation

- (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
- (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
+ (instancetype) NO_RETRY

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

Property Documentation

- (NSInteger) attempts
readnonatomicassign

The maximum number of retries to attempt

Since
6.9
- (NSUInteger) interval
readnonatomicassign

The number of milliseconds between retries

Since
6.9