Class RoutingConnectionSettings

java.lang.Object
com.here.sdk.routing.RoutingConnectionSettings

public final class RoutingConnectionSettings extends Object

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 Details

    • 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.

  • Constructor Details

    • RoutingConnectionSettings

      public RoutingConnectionSettings()

      Creates a new instance.

  • Method Details