public final class RouteSelector extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
connectFailed(Route failedRoute,
IOException failure)
Clients should invoke this method when they encounter a connectivity
failure on a connection returned by this route selector.
|
static RouteSelector |
get(Address address,
Request request,
OkHttpClient client) |
boolean |
hasNext()
Returns true if there's another route to attempt.
|
Route |
next() |
public static RouteSelector get(Address address, Request request, OkHttpClient client) throws IOException
IOExceptionpublic boolean hasNext()
public Route next() throws IOException
IOExceptionpublic void connectFailed(Route failedRoute, IOException failure)