Module io.helidon.webclient.grpc
Package io.helidon.webclient.grpc
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
Supplies an iterator that returns a URI chosen at random, never ends.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRandomSupplier(io.helidon.webclient.api.ClientUri[] clientUris) -
Method Summary
Modifier and TypeMethodDescriptioncreate(io.helidon.webclient.api.ClientUri... clientUris) Creates a random supplier.create(Collection<io.helidon.webclient.api.ClientUri> clientUris) Creates a random supplier.booleanhasNext()io.helidon.webclient.api.ClientUrinext()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.webclient.grpc.ClientUriSupplier
iteratorMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
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() -
next
public io.helidon.webclient.api.ClientUri next()
-