-
sudo apt-get update
-
Check if java is installed by running
java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ExponentialBackoffRetryHandler<T : Throwable>(private val maxRetries: Int = 3, | |
private val retryDelayMs: Long = 2500, | |
private val evaluator: (Throwable, Int) -> Boolean = { _, _ -> true }): | |
Function<Flowable<T>, Publisher<*>> { | |
companion object { | |
private const val TAG: String = "ExponentialRetryHandler" | |
} | |
private var retryCount: Int = 0 |