HttpRetry

abstract class HttpRetry(maxRetries: Int, retryDelayMS: Long) : BaseRetry

This is an implementation to catch network exceptions for retrywhen

Constructors

HttpRetry
Link copied to clipboard
fun HttpRetry(maxRetries: Int = 3, retryDelayMS: Long = 1000L)

Functions

apply
Link copied to clipboard
open override fun apply(t: Flowable<Throwable>): Flowable<*>
handleHttpError
Link copied to clipboard
abstract fun handleHttpError(httpException: HttpException): Flowable<*>
handleThrowable
Link copied to clipboard
open override fun handleThrowable(throwable: Throwable): Flowable<*>

Properties

maxRetries
Link copied to clipboard
val maxRetries: Int = 3
retryDelayMS
Link copied to clipboard
val retryDelayMS: Long = 1000L