TomTomReplanningRetryPolicy
public final class TomTomReplanningRetryPolicy : ReplanningRetryPolicy
Default implementation of a ReplanningRetryPolicy
.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Initializer
Declaration
Swift
public convenience init(forDeviation: Bool = false)
Parameters
forDeviation
flag to use default policy for deviation.
-
Initializer
Declaration
Swift
public init( maxNumberOfRetries: Int?, maxRetryDelay: DispatchTimeInterval )
Parameters
maxNumberOfRetries
Maximal number of retries. Nil is unlimited.
maxRetryDelay
Maximal delay between retries.
-
Declaration
Swift
public func shouldRetry(attempt: Int) -> Bool
-
Declaration
Swift
public func retryDelay(forAttempt attempt: Int) -> DispatchTimeInterval