dexcare
/
org.dexcare.dal.errorHandling.retries
/
HttpRetry
Http
Retry
abstract class
HttpRetry
(maxRetries:
Int
, retryDelayMS:
Long
) :
BaseRetry
Content copied to clipboard
This is an implementation to catch network exceptions for retrywhen
Constructors
Functions
Properties
Constructors
HttpRetry
Link copied to clipboard
fun
HttpRetry
(maxRetries:
Int
= 3, retryDelayMS:
Long
= 1000L)
Content copied to clipboard
Functions
apply
Link copied to clipboard
open override fun
apply
(t:
Flowable
<
Throwable
>):
Flowable
<*>
Content copied to clipboard
handleHttpError
Link copied to clipboard
abstract fun
handleHttpError
(httpException:
HttpException
):
Flowable
<*>
Content copied to clipboard
handleThrowable
Link copied to clipboard
open override fun
handleThrowable
(throwable:
Throwable
):
Flowable
<*>
Content copied to clipboard
Properties
maxRetries
Link copied to clipboard
val
maxRetries
:
Int
= 3
Content copied to clipboard
retryDelayMS
Link copied to clipboard
val
retryDelayMS
:
Long
= 1000L
Content copied to clipboard