K - key type of the supplied streamV - resulting value typepublic class ForEachOperation<K,V> extends AbstractForEachOperation<K,V,Stream<V>>
KeyTrackingTerminalOperation.IntermediateCollector<C>intermediateOperations, supplier| Constructor and Description |
|---|
ForEachOperation(Iterable<IntermediateOperation> intermediateOperations,
Supplier<Stream<CacheEntry>> supplier,
int batchSize,
Consumer<? super V> consumer) |
| Modifier and Type | Method and Description |
|---|---|
Consumer<? super V> |
getConsumer() |
void |
handleInjection(ComponentRegistry registry)
Handles injection of components for various intermediate and this operation.
|
protected void |
handleList(List<V> list) |
protected void |
handleStreamForEach(Stream<V> stream,
List<V> list) |
getBatchSize, lostSegment, performOperation, performOperationRehashAwaregetIntermediateOperations, setSupplierclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetSupplierpublic ForEachOperation(Iterable<IntermediateOperation> intermediateOperations, Supplier<Stream<CacheEntry>> supplier, int batchSize, Consumer<? super V> consumer)
protected void handleList(List<V> list)
handleList in class AbstractForEachOperation<K,V,Stream<V>>protected void handleStreamForEach(Stream<V> stream, List<V> list)
handleStreamForEach in class AbstractForEachOperation<K,V,Stream<V>>public void handleInjection(ComponentRegistry registry)
KeyTrackingTerminalOperationhandleInjection in interface KeyTrackingTerminalOperation<K,V,K>handleInjection in class BaseTerminalOperationregistry - component registry to useCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.