Package org.redisson.api
Interface AsyncIterator<V>
- Type Parameters:
V
- value type
public interface AsyncIterator<V>
Asynchronous iterator
- Author:
- Nikita Koksharov
-
Method Details
-
hasNext
CompletionStage<Boolean> hasNext()Returnstrue
if more elements are available.NOTE: each invocation returns a new instance of CompletionStage
- Returns:
true
if more elements are available, otherwisefalse
-
next
CompletionStage<V> next()Returns next element or NoSuchElementException if no more elements available.NOTE: each invocation returns a new instance of CompletionStage
- Returns:
- next element or NoSuchElementException
-