Module bus.http

Class RouteSelector.Selection

java.lang.Object
org.miaixz.bus.http.accord.RouteSelector.Selection
Enclosing class:
RouteSelector

public static class RouteSelector.Selection extends Object
A selection of routes to try.
  • Method Details

    • hasNext

      public boolean hasNext()
      Returns true if there is another route to attempt.
      Returns:
      true if there is another route.
    • next

      public Route next()
      Returns the next route to attempt.
      Returns:
      The next route.
    • getAll

      public List<Route> getAll()
      Returns a list of all routes in this selection.
      Returns:
      A new list containing all routes.