RetryPolicy.Builder

public static final class RetryPolicy.Builder extends Object

Builder for creating an instance of RetryPolicy

Public Constructor Summary

Public Method Summary

RetryPolicy
build()
Builds an instance of RetryPolicy
RetryPolicy.Builder
setBackOffFactory(RetryPolicy.BackOffFactory factory)
Sets RetryPolicy.BackOffFactory used for computing exponential back off while retrying failed requests.
RetryPolicy.Builder
setMaxRetryLimit(int maxRetries)
Sets maximum retry limit for failed requests.

Inherited Method Summary

Public Constructors

public RetryPolicy.Builder ()

Public Methods

public RetryPolicy build ()

Builds an instance of RetryPolicy

public RetryPolicy.Builder setBackOffFactory (RetryPolicy.BackOffFactory factory)

Sets RetryPolicy.BackOffFactory used for computing exponential back off while retrying failed requests.

Parameters
factory RetryPolicy.BackOffFactory used for computing exponential back off

public RetryPolicy.Builder setMaxRetryLimit (int maxRetries)

Sets maximum retry limit for failed requests.

Parameters
maxRetries maximum retry limit for failed requests.