@FunctionalInterface
public static interface BaseCacheStream.SegmentCompletionListener
extends java.util.function.Consumer<java.util.function.Supplier<java.util.PrimitiveIterator.OfInt>>
BaseCacheStream.segmentCompletionListener(SegmentCompletionListener) for more details.| Modifier and Type | Method and Description |
|---|---|
default void |
accept(java.util.function.Supplier<java.util.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
|
void |
segmentCompleted(java.util.Set<java.lang.Integer> segments)
Deprecated.
This method requires boxing for each segment. Please use
accept(Supplier) instead |
@Deprecated void segmentCompleted(java.util.Set<java.lang.Integer> segments)
accept(Supplier) insteadsegments - The segments that were completeddefault void accept(java.util.function.Supplier<java.util.PrimitiveIterator.OfInt> segments)
accept in interface java.util.function.Consumer<java.util.function.Supplier<java.util.PrimitiveIterator.OfInt>>segments - The segments that were completed