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, performOperationRehashAware
getIntermediateOperations, setSupplier
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setSupplier
public 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)
KeyTrackingTerminalOperation
handleInjection
in interface KeyTrackingTerminalOperation<K,V,K>
handleInjection
in class BaseTerminalOperation
registry
- component registry to useCopyright © 2020 JBoss, a division of Red Hat. All rights reserved.