Package 

Class RouteSelector


  • 
    public final class RouteSelector
    
                        

    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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class RouteSelector.Selection

      A set of selected Routes.

    • Method Summary

      Modifier and Type Method Description
      boolean hasNext() Returns true if there's another set of routes to attempt.
      RouteSelector.Selection next()
      void connectFailed(Route failedRoute, IOException failure) Clients should invoke this method when they encounter a connectivity failure on a connectionreturned by this route selector.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait