Class RoutingConnectionSettings
Class RoutingConnectionSettings
- java.lang.Object
-
- com.here.sdk.routing.RoutingConnectionSettings
-
public final class RoutingConnectionSettings extends java.lang.ObjectDefines 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
Fields Modifier and Type Field Description DurationconnectionTimeoutRetryIncreaseDefines the increase of the timeout for the transfer of data.DurationinitialConnectionTimeoutDefines the initial time out for connection to the backend.DurationinitialTransferTimeoutDefines the initial time out for data transfer from the backend.intmaxRetryCountDefines the max amount of retries before the route request failes with connection related error codes.DurationtransferTimeoutRetryIncreaseDefines the increase of the timeout for the connection.
-
Constructor Summary
Constructors Constructor Description RoutingConnectionSettings()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()
-
-
-
Field Detail
-
initialConnectionTimeout
@NonNull public Duration initialConnectionTimeout
Defines the initial time out for connection to the backend. By default, the initial connection timeout is 5 seconds.
-
connectionTimeoutRetryIncrease
@NonNull public Duration connectionTimeoutRetryIncrease
Defines the increase of the timeout for the transfer of data. By default, the initial connection increment per timeout 10 seconds.
-
initialTransferTimeout
@NonNull public Duration initialTransferTimeout
Defines the initial time out for data transfer from the backend. By default, the initial transfer timeout is 10 seconds.
-
transferTimeoutRetryIncrease
@NonNull public Duration transferTimeoutRetryIncrease
Defines the increase of the timeout for the connection. By default, the initial transfer increment per timeout is 2 seconds.
-
maxRetryCount
public int maxRetryCount
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.
-
-