T - Type of elementsIterator<T>public class ValveIterator<T> extends Object implements Iterator<T>
Valve into a blocking Iterator.
If the original Valve ends with Throwable then this iterator simply ends and original cause can be get
using getThrowable() method.
| Modifier and Type | Method | Description |
|---|---|---|
Throwable |
getThrowable() |
If original
Valve ends with error then this method returns cause of such error. |
boolean |
hasNext() |
|
T |
next() |
forEachRemaining, removeCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.