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

    Fields
    Modifier and Type
    Field
    Description
    static final long
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
     
     
  • Field Details

    • INITIAL_CURSOR_ID

      @Deprecated(forRemoval=true, since="3.26") static final long 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