Class ScanIteration<T>

java.lang.Object
org.springframework.data.redis.core.ScanIteration<T>
All Implemented Interfaces:
Iterable<T>

public class ScanIteration<T> extends Object implements Iterable<T>
ScanIteration holds the values contained in Redis Multibulk reply on exectuting SCAN command.
Since:
1.4
Author:
Christoph Strobl, Mark Paluch
  • Constructor Details

    • ScanIteration

      public ScanIteration(long cursorId, @Nullable Collection<T> items)
      Parameters:
      cursorId -
      items -
  • Method Details

    • getCursorId

      public long getCursorId()
      The cursor id to be used for subsequent requests.
      Returns:
    • getItems

      public Collection<T> getItems()
      Get the items returned.
      Returns:
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T>