Package org.redisson.iterator
Class BaseAsyncIterator<V,E>
java.lang.Object
org.redisson.iterator.BaseAsyncIterator<V,E>
- All Implemented Interfaces:
AsyncIterator<V>
- Author:
- seakider
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected VhasNext()Returnstrueif more elements are available.protected abstract RFuture<ScanResult<E>> iterator(RedisClient client, String nextItPos) next()Returns next element or NoSuchElementException if no more elements available.
-
Field Details
-
nextItPos
-
client
-
-
Constructor Details
-
BaseAsyncIterator
public BaseAsyncIterator()
-
-
Method Details
-
hasNext
Description copied from interface:AsyncIteratorReturnstrueif more elements are available.NOTE: each invocation returns a new instance of CompletionStage
- Specified by:
hasNextin interfaceAsyncIterator<V>- Returns:
trueif more elements are available, otherwisefalse
-
next
Description copied from interface:AsyncIteratorReturns next element or NoSuchElementException if no more elements available.NOTE: each invocation returns a new instance of CompletionStage
- Specified by:
nextin interfaceAsyncIterator<V>- Returns:
- next element or NoSuchElementException
-
iterator
-
getValue
-