BackoffCriteria

data class BackoffCriteria(backoffPolicy: <ERROR CLASS>, backoffDelay: Long, timeUnit: TimeUnit)

The criteria for FhirSyncWorker failure retry based on androidx.work.WorkRequest.Builder.setBackoffCriteria

Constructors

Link copied to clipboard
fun BackoffCriteria(backoffPolicy: <ERROR CLASS>, backoffDelay: Long, timeUnit: TimeUnit)

Properties

Link copied to clipboard
val backoffDelay: Long

Backoff delay for each retry attempt. Check androidx.work.PeriodicWorkRequest.MIN_BACKOFF_MILLIS and androidx.work.PeriodicWorkRequest.MAX_BACKOFF_MILLIS for the min-max supported values

Link copied to clipboard
val backoffPolicy: <ERROR CLASS>

Backoff policy androidx.work.BackoffPolicy

Link copied to clipboard
val timeUnit: TimeUnit

The time unit for backoffDelay