public class UnavailableUrls extends Object
NOTE: to avoid excessive network traffic, the period to wait before checking for a URL increases exponentially.
Constructor and Description |
---|
UnavailableUrls() |
Modifier and Type | Method and Description |
---|---|
void |
add(String url)
Add a URL to the set of unavailable URL's.
|
boolean |
contains(String url)
Does the set contain a specified URL.
|
int |
getInitialRetryInterval() |
int |
getMaxRetryInterval() |
public int getMaxRetryInterval()
public int getInitialRetryInterval()
public void add(String url)
url
- - no validation that the string is a valid URLpublic boolean contains(String url)
url
- of the endpoint to pingThis work is licensed under a Creative Commons Attribution 4.0 International License.