T
- The element type of this iterator.@Experimental public interface StateIterator<T>
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty()
Return if this iterator is empty synchronously.
|
StateFuture<Void> |
onNext(Consumer<T> iterating)
Async iterate the data and call the callback when data is ready.
|
<U> StateFuture<Collection<U>> |
onNext(Function<T,StateFuture<? extends U>> iterating)
Async iterate the data and call the callback when data is ready.
|
<U> StateFuture<Collection<U>> onNext(Function<T,StateFuture<? extends U>> iterating)
U
- the type of the inner returned StateFuture's result.iterating
- the data action when it is ready. The return is the state future for
chaining.StateFuture<Void> onNext(Consumer<T> iterating)
iterating
- the data action when it is ready.boolean isEmpty()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.