public final class RouteSelector extends Object
| Constructor and Description |
|---|
RouteSelector(Address
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectFailed(Route
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(Addressaddress, RouteDatabase routeDatabase)
public boolean hasNext()
public Routenext() throws IOException
IOException
public void connectFailed(RoutefailedRoute, IOException failure)