ExponentialBackoffRetryPolicy
open class ExponentialBackoffRetryPolicy : FontRequestEmojiCompatConfig.RetryPolicy
A retry policy implementation that doubles the amount of time in between retries. If downloading hasn't finish within given amount of time, this policy give up and the EmojiCompat will get into EmojiCompat#LOAD_STATE_FAILED
state.
Summary
Public constructors
<init>
ExponentialBackoffRetryPolicy(totalMs: Long)
Parameters |
totalMs |
Long: A total amount of time to wait in milliseconds. |
Public methods
getRetryDelay
open fun getRetryDelay(): Long