Class ClientUriSuppliers.OrderedSupplier
java.lang.Object
io.helidon.webclient.grpc.ClientUriSuppliers.OrderedSupplier
- All Implemented Interfaces:
ClientUriSupplier, Iterable<ClientUri>, Iterator<ClientUri>
- Enclosing class:
ClientUriSuppliers
Supplies an iterator that returns URIs chosen in order from
first to last.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOrderedSupplier(Collection<ClientUri> clientUris) Creates an ordered supplier. -
Method Summary
Modifier and TypeMethodDescriptionCreates an ordered supplier.create(Collection<ClientUri> clientUris) Creates an ordered supplier.booleanhasNext()next()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClientUriSupplier
iteratorMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Iterator
forEachRemaining, remove
-
Constructor Details
-
OrderedSupplier
Creates an ordered supplier.- Parameters:
clientUris- URIs to cycle through in order
-
-
Method Details
-
create
Creates an ordered supplier.- Parameters:
clientUris- array of client URIs- Returns:
- new supplier
-
create
Creates an ordered supplier.- Parameters:
clientUris- collection of client URIs- Returns:
- new supplier
-
hasNext
-
next
-