Class ClientUriSuppliers.RoundRobinSupplier

java.lang.Object
io.helidon.webclient.grpc.ClientUriSuppliers.RoundRobinSupplier
All Implemented Interfaces:
ClientUriSupplier, Iterable<io.helidon.webclient.api.ClientUri>, Iterator<io.helidon.webclient.api.ClientUri>
Enclosing class:
ClientUriSuppliers

public static class ClientUriSuppliers.RoundRobinSupplier extends Object implements ClientUriSupplier
Supplies a neven-ending iterator that returns URIs chosen using a round-robin strategy.
  • Constructor Details

    • RoundRobinSupplier

      protected RoundRobinSupplier(io.helidon.webclient.api.ClientUri[] clientUris)
  • Method Details

    • create

      public static ClientUriSuppliers.RoundRobinSupplier create(io.helidon.webclient.api.ClientUri... clientUris)
      Creates a round-robin supplier.
      Parameters:
      clientUris - array of client URIs
      Returns:
      new supplier
    • create

      public static ClientUriSuppliers.RoundRobinSupplier create(Collection<io.helidon.webclient.api.ClientUri> clientUris)
      Creates a round-robin supplier.
      Parameters:
      clientUris - collection of client URIs
      Returns:
      new supplier
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<io.helidon.webclient.api.ClientUri>
    • next

      public io.helidon.webclient.api.ClientUri next()
      Specified by:
      next in interface Iterator<io.helidon.webclient.api.ClientUri>