Interface IteratorResponse<V>

  • All Known Implementing Classes:
    IteratorResponses

    public interface IteratorResponse<V>
    Iterator response returned when an iterator batch is sent back which contains the iterator, if any segments were suspected and if the iterator has returned all values (complete).
    Since:
    9.0
    Author:
    wburns
    • Method Detail

      • getSpliterator

        Spliterator<V> getSpliterator()
        The spliterator containing the elements from the response. This spliterator is guaranteed to have a known exact size when invoking Spliterator.getExactSizeIfKnown().
        Returns:
        the spliterator
      • isComplete

        boolean isComplete()
        Whether the iterator is the end or if more requests are needed
        Returns:
        if no more elements are available
      • getSuspectedSegments

        org.infinispan.commons.util.IntSet getSuspectedSegments()
        The segments that were lost during the iteration process
        Returns:
        the segments that need to be re-queried