public class NoRetryPolicy extends Object implements RetryPolicy
RetryPolicy with default behaviour as no retry.| Constructor and Description |
|---|
NoRetryPolicy() |
| Modifier and Type | Method and Description |
|---|---|
int |
getNextRetryIntervalMillis(RetryContext retryContext)
Calculates wait interval after which retry should happen in milliseconds.
|
boolean |
shouldRetry(RetryContext retryContext)
Decides whether retry should happen based on last response or last exception thrown.
|
public boolean shouldRetry(RetryContext retryContext)
RetryPolicyshouldRetry in interface RetryPolicyretryContext - An instance of RetryContextpublic int getNextRetryIntervalMillis(RetryContext retryContext)
RetryPolicygetNextRetryIntervalMillis in interface RetryPolicyretryContext - An instance of RetryContextCopyright © 2020 HERE Europe B.V. All Rights Reserved.