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<ClientUri>
,Iterator<ClientUri>
- Enclosing class:
ClientUriSuppliers
Supplies an iterator that returns a URI chosen at random, never ends.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a random supplier.create
(Collection<ClientUri> clientUris) Creates a random supplier.boolean
hasNext()
next()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.webclient.grpc.ClientUriSupplier
iterator
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
RandomSupplier
-
-
Method Details
-
create
Creates a random supplier.- Parameters:
clientUris
- array of client URIs- Returns:
- new supplier
-
create
Creates a random supplier.- Parameters:
clientUris
- collection of client URIs- Returns:
- new supplier
-
hasNext
public boolean hasNext() -
next
-