-
public final class RouteSelectorSelects routes to connect to an origin server. Each connection requires a choice of proxy server, IP address, and TLS mode. Connections may also be recycled.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRouteSelector.SelectionA set of selected Routes.
-
Constructor Summary
Constructors Constructor Description RouteSelector(Address address, RouteDatabase routeDatabase, Call call, EventListener eventListener)
-
Method Summary
Modifier and Type Method Description booleanhasNext()Returns true if there's another set of routes to attempt. RouteSelector.Selectionnext()voidconnectFailed(Route failedRoute, IOException failure)Clients should invoke this method when they encounter a connectivity failure on a connectionreturned by this route selector. -
-
Constructor Detail
-
RouteSelector
RouteSelector(Address address, RouteDatabase routeDatabase, Call call, EventListener eventListener)
-
-
Method Detail
-
hasNext
boolean hasNext()
Returns true if there's another set of routes to attempt. Every address has at least one route.
-
next
RouteSelector.Selection next()
-
connectFailed
void connectFailed(Route failedRoute, IOException failure)
Clients should invoke this method when they encounter a connectivity failure on a connectionreturned by this route selector.
-
-
-
-