Package io.quarkus.redis.datasource
Interface Cursor<T>
- All Known Subinterfaces:
HashScanCursor<K,,V> KeyScanCursor<K>,SScanCursor<V>,ZScanCursor<V>
- All Known Implementing Classes:
HashScanBlockingCursorImpl,ScanBlockingCursorImpl,SScanBlockingCursorImpl,ZScanBlockingCursorImpl
public interface Cursor<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longDeprecated, for removal: This API element is subject to removal in a future version.Previously, this value was -1, assuming that this value is never produced by Redis as an actual cursor. -
Method Summary
-
Field Details
-
INITIAL_CURSOR_ID
Deprecated, for removal: This API element is subject to removal in a future version.Previously, this value was -1, assuming that this value is never produced by Redis as an actual cursor. However, Redis uses unsigned 64-bit integers as cursor values, so the assumption was wrong (-1 as 64-bit signed integer is 0xFFFF_FFFF_FFFF_FFFF, which is the biggest unsigned 64-bit integer). This should have never been exposed publicly and should not be relied upon.The current value is 0, which is the correct initial and final cursor value in Redis.
The cursor id when no operations have been emitted yet.- See Also:
-
-
Method Details
-
hasNext
boolean hasNext() -
next
T next() -
cursorId
Deprecated, for removal: This API element is subject to removal in a future version.
-