SpatialTerrainBackoff

data class SpatialTerrainBackoff(val target: GeoBounds? = null, val failures: Int = 0, val retryAfterMillis: Long? = null, val cancelled: Boolean = false)(source)

Retry rules for automatic downloads, per target area: a failure waits 10 min · 2^n before the next try and stops after three; a cancel stops automatic tries for that area this session.

Constructors

Link copied to clipboard
constructor(target: GeoBounds? = null, failures: Int = 0, retryAfterMillis: Long? = null, cancelled: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun allows(target: GeoBounds, nowMillis: Long): Boolean
Link copied to clipboard
fun gaveUp(target: GeoBounds): Boolean

True when automatic downloads have stopped for this area (cancelled, or failed too often).

Link copied to clipboard
Link copied to clipboard