public
class
RetryHelper
Utility class for retrying operations. For more details about the parameters, see RetrySettings . In case if retrying is unsuccessful, RetryHelperException will be thrown.
Static Methods
<V>poll(Callable<V> callable, RetrySettings pollSettings, ResultRetryAlgorithm<V> resultPollAlgorithm, ApiClock clock)
public
static
V
< V>poll
(
Callable<V>
callable
,
RetrySettings
pollSettings
,
ResultRetryAlgorithm<V>
resultPollAlgorithm
,
ApiClock
clock
)
Parameters
Name
Description
callable
Callable
< V
>
pollSettings
resultPollAlgorithm
ResultRetryAlgorithm
< V
>
clock
Returns
Type
Description
V
<V>runWithRetries(Callable<V> callable, RetrySettings retrySettings, ResultRetryAlgorithm<?> resultRetryAlgorithm, ApiClock clock)
public
static
V
< V>runWithRetries
(
Callable<V>
callable
,
RetrySettings
retrySettings
,
ResultRetryAlgorithm
< ?
>
resultRetryAlgorithm
,
ApiClock
clock
)
Parameters
Name
Description
callable
Callable
< V
>
retrySettings
resultRetryAlgorithm
ResultRetryAlgorithm
< ?
>
clock
Returns
Type
Description
V
Constructors
RetryHelper()
public
RetryHelper
()

