Class RouteSelector


  • public final class RouteSelector
    extends Object
    Selects 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.
    • Method Detail

      • hasNext

        public boolean hasNext()
        Returns true if there's another route to attempt. Every address has at least one route.
      • connectFailed

        public 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.