@FunctionalInterface public static interface BaseCacheStream.SegmentCompletionListener extends Consumer<Supplier<PrimitiveIterator.OfInt>>
BaseCacheStream.segmentCompletionListener(SegmentCompletionListener)
for more details.Modifier and Type | Method and Description |
---|---|
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
|
void |
segmentCompleted(Set<Integer> segments)
Deprecated.
This method requires boxing for each segment. Please use
accept(Supplier) instead |
@Deprecated void segmentCompleted(Set<Integer> segments)
accept(Supplier)
insteadsegments
- The segments that were completeddefault void accept(Supplier<PrimitiveIterator.OfInt> segments)
accept
in interface Consumer<Supplier<PrimitiveIterator.OfInt>>
segments
- The segments that were completedCopyright © 2021 JBoss by Red Hat. All rights reserved.