RoutingConnectionSettings (API Reference)
Class RoutingConnectionSettings
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionDefines the increase of the timeout for the transfer of data.Defines the initial time out for connection to the backend.Defines the initial time out for data transfer from the backend.intDefines the max amount of retries before the route request failes with connection related error codes.Defines the increase of the timeout for the connection. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
initialConnectionTimeout
Defines the initial time out for connection to the backend. By default, the initial connection timeout is 5 seconds.
-
connectionTimeoutRetryIncrease
Defines the increase of the timeout for the transfer of data. By default, the initial connection increment per timeout 10 seconds.
-
initialTransferTimeout
Defines the initial time out for data transfer from the backend. By default, the initial transfer timeout is 10 seconds.
-
transferTimeoutRetryIncrease
Defines the increase of the timeout for the connection. By default, the initial transfer increment per timeout is 2 seconds.
-
maxRetryCount
public int maxRetryCountDefines the max amount of retries before the route request failes with connection related error codes. By default, the max amount of retries is 3.
-
-
Constructor Details
-
RoutingConnectionSettings
public RoutingConnectionSettings()Creates a new instance.
-
-
Method Details