ARTConnectRetryState
Objective-C
@interface ARTConnectRetryState : NSObject
Swift
class ConnectRetryState : NSObject
Maintains the state that an ARTRealtime
instance needs in order to determine the duration to wait before retrying a connection. Wraps a sequence of ARTRetrySequence
objects.
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithRetryDelayCalculator:(id<ARTRetryDelayCalculator>)retryDelayCalculator logger:(ARTInternalLog *)logger logMessagePrefix:(NSString *)logMessagePrefix;
Swift
init(retryDelayCalculator: any RetryDelayCalculator, logger: InternalLog, logMessagePrefix: String)
-
Unavailable
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;
-
Calls
addRetryAttempt
on the current retry sequence.Declaration
Objective-C
- (nonnull ARTRetryAttempt *)addRetryAttempt;
Swift
func addRetryAttempt() -> RetryAttempt
-
Resets the retry sequence when the channel leaves the sequence of
DISCONNECTED
<->CONNECTING
state changes.Declaration
Objective-C
- (void)connectionWillTransitionToState:(ARTRealtimeConnectionState)state;
Swift
func connectionWillTransition(to state: ARTRealtimeConnectionState)