public class FailoverUrlSelector extends AbstractUrlSelector
conf, urls| Constructor and Description |
|---|
FailoverUrlSelector(java.lang.String clusterUrl) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
failedError(java.lang.Exception ex)
Returns true if the given Exception indicates the respective URL can be treated as failed.
|
java.lang.String |
select()
Returns the current url chosen among the given cluster urls.
|
void |
urlWithError(java.lang.String url,
java.lang.Exception e)
Sets the given
url is failed with the given Exception ex. |
initpublic java.lang.String select()
UrlSelectorpublic void urlWithError(java.lang.String url,
java.lang.Exception e)
UrlSelectorurl is failed with the given Exception ex.url - failed urle - exception encounteredprotected boolean failedError(java.lang.Exception ex)
ex -