ARTAttachRetryState
Objective-C
@interface ARTAttachRetryState : NSObject
Swift
class AttachRetryState : NSObject
Maintains the state that an ARTRealtimeChannel
instance needs in order to determine the duration to wait before retrying an attach. 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
SUSPENDED
<->ATTACHING
state changes.Declaration
Objective-C
- (void)channelWillTransitionToState:(ARTRealtimeChannelState)state;
Swift
func channelWillTransition(to state: ARTRealtimeChannelState)