public final class RouteSelector extends Object
| Constructor and Description |
|---|
RouteSelector(Address address,
RouteDatabase routeDatabase) |
| 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.
|
boolean |
hasNext()
Returns true if there's another route to attempt.
|
Route |
next() |
public RouteSelector(Address address, RouteDatabase routeDatabase)
public boolean hasNext()
public Route next() throws IOException
IOExceptionpublic void connectFailed(Route failedRoute, IOException failure)
Copyright © 2017. All Rights Reserved.