Class RetryHelper (2.21.1)

  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.

Inheritance

java.lang.Object > RetryHelper

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
clock
Returns
Type
Description
V
Exceptions
Type
Description

<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
clock
Returns
Type
Description
V
Exceptions
Type
Description

Constructors

RetryHelper()

  public 
  
 RetryHelper 
 () 
 
Design a Mobile Site
View Site in Mobile | Classic
Share by: