public final class RouteSelector extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RouteSelector.Selection
A set of selected Routes.
|
Constructor and Description |
---|
RouteSelector(Address address,
RouteDatabase routeDatabase,
Call call,
EventListener eventListener) |
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 set of routes to attempt.
|
RouteSelector.Selection |
next() |
public RouteSelector(Address address, RouteDatabase routeDatabase, Call call, EventListener eventListener)
public boolean hasNext()
public RouteSelector.Selection next() throws IOException
IOException
public void connectFailed(Route failedRoute, IOException failure)
Copyright © 2019. All rights reserved.