Interface BaseCacheStream.SegmentCompletionListener

    • Method Detail

      • segmentCompleted

        @Deprecated
        void segmentCompleted​(Set<Integer> segments)
        Deprecated.
        This method requires boxing for each segment. Please use accept(Supplier) instead
        Method invoked when the segment has been found to be consumed properly by the terminal operation.
        Parameters:
        segments - The segments that were completed
      • accept

        default void accept​(Supplier<PrimitiveIterator.OfInt> segments)
        Invoked each time a given number of segments have completed and the terminal operation has consumed all entries in the given segment
        Parameters:
        segments - The segments that were completed