- All Known Subinterfaces:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface BaseCacheStream.SegmentCompletionListener extends Consumer<Supplier<PrimitiveIterator.OfInt>>Functional interface that is used as a callback when segments are completed. Please see
BaseCacheStream.segmentCompletionListener(SegmentCompletionListener)for more details.
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description
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
segmentCompleted(Set<Integer> segments)Deprecated.This method requires boxing for each segment.
@Deprecated void segmentCompleted(Set<Integer> segments)Deprecated.This method requires boxing for each segment. Please use
accept(Supplier)insteadMethod invoked when the segment has been found to be consumed properly by the terminal operation.
segments- The segments that were completed
default void accept(Supplier<PrimitiveIterator.OfInt> segments)