T - Type of elementsjava.util.Iterator<T>public class ValveIterator<T>
extends java.lang.Object
implements java.util.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 |
|---|---|---|
java.lang.Throwable |
getThrowable() |
If original
Valve ends with error then this method returns cause of such error. |
boolean |
hasNext() |
|
T |
next() |
Copyright © 2018 Oracle Corporation. All rights reserved.