Class CompositeAsyncIterator<T>

java.lang.Object
org.redisson.misc.CompositeAsyncIterator<T>
All Implemented Interfaces:
AsyncIterator<T>

public class CompositeAsyncIterator<T> extends Object implements AsyncIterator<T>
Author:
seakider
  • Constructor Details

    • CompositeAsyncIterator

      public CompositeAsyncIterator(List<AsyncIterator<T>> asyncIterators, int limit)
  • Method Details

    • hasNext

      public CompletionStage<Boolean> hasNext()
      Description copied from interface: AsyncIterator
      Returns true if more elements are available.

      NOTE: each invocation returns a new instance of CompletionStage

      Specified by:
      hasNext in interface AsyncIterator<T>
      Returns:
      true if more elements are available, otherwise false
    • next

      public CompletionStage<T> next()
      Description copied from interface: AsyncIterator
      Returns next element or NoSuchElementException if no more elements available.

      NOTE: each invocation returns a new instance of CompletionStage

      Specified by:
      next in interface AsyncIterator<T>
      Returns:
      next element or NoSuchElementException