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 long
cursorId()
boolean
hasNext()
Set<K>
next()
Iterable<K>
toIterable()
Returns anIterable
providing the keys individually.
-
-
-
Constructor Detail
-
ScanBlockingCursorImpl
public ScanBlockingCursorImpl(ReactiveKeyScanCursor<K> reactive, Duration timeout)
-
-
Method Detail
-
toIterable
public Iterable<K> toIterable()
Description copied from interface:KeyScanCursor
Returns anIterable
providing the keys individually. UnlikeCursor.next()
which provides the keys by batch, this method returns them one by one.- Specified by:
toIterable
in interfaceKeyScanCursor<K>
- Returns:
- the iterable
-
-