RoutingConnectionSettings
public struct RoutingConnectionSettings : Hashable
Defines the settings for the retry logic when connecting to the HERE routing backend.
When a timeout is triggered, the next connection attempt starts with a increased timeout. new_timeout = initial_timeout + increment * retry_count
-
Defines the initial time out for connection to the backend. By default, the initial connection timeout is 5 seconds.
Declaration
Swift
public var initialConnectionTimeout: TimeInterval -
Defines the increase of the timeout for the transfer of data. By default, the initial connection increment per timeout 10 seconds.
Declaration
Swift
public var connectionTimeoutRetryIncrease: TimeInterval -
Defines the initial time out for data transfer from the backend. By default, the initial transfer timeout is 10 seconds.
Declaration
Swift
public var initialTransferTimeout: TimeInterval -
Defines the increase of the timeout for the connection. By default, the initial transfer increment per timeout is 2 seconds.
Declaration
Swift
public var transferTimeoutRetryIncrease: TimeInterval -
Defines the max amount of retries before the route request failes with connection related error codes. By default, the max amount of retries is 3.
Declaration
Swift
public var maxRetryCount: Int32 -
init(initialConnectionTimeout:connectionTimeoutRetryIncrease: initialTransferTimeout: transferTimeoutRetryIncrease: maxRetryCount: ) Creates a new instance.
Declaration
Swift
public init(initialConnectionTimeout: TimeInterval = 5, connectionTimeoutRetryIncrease: TimeInterval = 10, initialTransferTimeout: TimeInterval = 10, transferTimeoutRetryIncrease: TimeInterval = 2, maxRetryCount: Int32 = 3)