Class ScanBlockingCursorImpl<K>
- java.lang.Object
-
- io.quarkus.redis.runtime.datasource.ScanBlockingCursorImpl<K>
-
- All Implemented Interfaces:
Cursor<Set<K>>,KeyScanCursor<K>
public class ScanBlockingCursorImpl<K> extends Object implements KeyScanCursor<K>
-
-
Field Summary
-
Fields inherited from interface io.quarkus.redis.datasource.Cursor
INITIAL_CURSOR_ID
-
-
Constructor Summary
Constructors Constructor Description ScanBlockingCursorImpl(ReactiveKeyScanCursor<K> reactive, Duration timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcursorId()booleanhasNext()Set<K>next()Iterable<K>toIterable()Returns anIterableproviding the keys individually.
-
-
-
Constructor Detail
-
ScanBlockingCursorImpl
public ScanBlockingCursorImpl(ReactiveKeyScanCursor<K> reactive, Duration timeout)
-
-
Method Detail
-
toIterable
public Iterable<K> toIterable()
Description copied from interface:KeyScanCursorReturns anIterableproviding the keys individually. UnlikeCursor.next()which provides the keys by batch, this method returns them one by one.- Specified by:
toIterablein interfaceKeyScanCursor<K>- Returns:
- the iterable
-
-