Class ClientUriSuppliers.RandomSupplier

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

public static class ClientUriSuppliers.RandomSupplier extends Object implements ClientUriSupplier
Supplies an iterator that returns a URI chosen at random, never ends.
  • Constructor Details

    • RandomSupplier

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

    • create

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

      public static ClientUriSuppliers.RandomSupplier create(Collection<io.helidon.webclient.api.ClientUri> clientUris)
      Creates a random 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>