Class PeekOperation<S>
- java.lang.Object
-
- org.infinispan.stream.impl.intops.object.PeekOperation<S>
-
- All Implemented Interfaces:
IntermediateOperation<S,Stream<S>,S,Stream<S>>
public class PeekOperation<S> extends Object implements IntermediateOperation<S,Stream<S>,S,Stream<S>>
Performs peek operation on a regularStream
-
-
Constructor Summary
Constructors Constructor Description PeekOperation(Consumer<? super S> consumer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Consumer<? super S>
getConsumer()
void
handleInjection(ComponentRegistry registry)
Handles injection of components for various dependencies that the intermediate operation hasStream<S>
perform(Stream<S> stream)
Performs the actualy intermediate operation returning the resulting stream
-
-
-
Method Detail
-
perform
public Stream<S> perform(Stream<S> stream)
Description copied from interface:IntermediateOperation
Performs the actualy intermediate operation returning the resulting stream
-
handleInjection
public void handleInjection(ComponentRegistry registry)
Description copied from interface:IntermediateOperation
Handles injection of components for various dependencies that the intermediate operation has- Specified by:
handleInjection
in interfaceIntermediateOperation<S,Stream<S>,S,Stream<S>>
- Parameters:
registry
- the registry to use
-
-