Package io.helidon.common.reactive.valve
Class ValveIterator<T>
- java.lang.Object
-
- io.helidon.common.reactive.valve.ValveIterator<T>
-
- Type Parameters:
T
- Type of elements
- All Implemented Interfaces:
Iterator<T>
public class ValveIterator<T> extends Object implements Iterator<T>
Transforms reactiveValve
into a blockingIterator
.If the original
Valve
ends withThrowable
then this iterator simply ends and original cause can be get usinggetThrowable()
method.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getThrowable()
If originalValve
ends with error then this method returns cause of such error.boolean
hasNext()
T
next()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-