GeneralRetry

class GeneralRetry(maxRetries: Int, retryDelayMS: Long) : BaseRetry

This is a generic retry that can be used to retry on any errors, with a configurable max number of retries and delay between each retry.

Constructors

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

Functions

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