RetryPolicy

interface RetryPolicy

The retry policy is being used to determine if and when the call should be retried if a temporary error occurred.

Functions

Link copied to clipboard
abstract fun retryTimeout(attempt: Int, error: StreamError): Int

Provides a timeout used to delay the next call.

Link copied to clipboard
abstract fun shouldRetry(attempt: Int, error: StreamError): Boolean

Determines whether the call should be retried.