public class RetryHandler
extends java.lang.Object
| Constructor and Description |
|---|
RetryHandler() |
RetryHandler(int maxConnectRetries,
int maxHeaderRetries) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxConnectRetries()
Get the maximum amount of connect retries.
|
int |
getMaxHeaderRetries()
Get the maximum amount of header retries.
|
RetryHandler |
setMaxConnectRetries(int maxConnectRetries)
Set the maximum amount of connect retries.
|
RetryHandler |
setMaxHeaderRetries(int maxHeaderRetries)
Set the maximum amount of header retries.
|
public RetryHandler()
public RetryHandler(int maxConnectRetries,
int maxHeaderRetries)
public int getMaxConnectRetries()
public RetryHandler setMaxConnectRetries(int maxConnectRetries)
maxConnectRetries - The maximum amount of connect retriespublic int getMaxHeaderRetries()
Headers.RETRY_AFTER header is present.public RetryHandler setMaxHeaderRetries(int maxHeaderRetries)
maxHeaderRetries - The maximum amount of header retries