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()voidhandleInjection(ComponentRegistry registry)Handles injection of components for various dependencies that the intermediate operation hasio.reactivex.rxjava3.core.Flowable<S>mapFlowable(io.reactivex.rxjava3.core.Flowable<S> input)Performs the intermediate operation on a Flowable.Stream<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:IntermediateOperationPerforms the actualy intermediate operation returning the resulting stream
-
handleInjection
public void handleInjection(ComponentRegistry registry)
Description copied from interface:IntermediateOperationHandles injection of components for various dependencies that the intermediate operation has- Specified by:
handleInjectionin interfaceIntermediateOperation<S,Stream<S>,S,Stream<S>>- Parameters:
registry- the registry to use
-
mapFlowable
public io.reactivex.rxjava3.core.Flowable<S> mapFlowable(io.reactivex.rxjava3.core.Flowable<S> input)
Description copied from interface:IntermediateOperationPerforms the intermediate operation on a Flowable. This is an interop method to allow Distributed Streams to actually use Distributed Publisher- Specified by:
mapFlowablein interfaceIntermediateOperation<S,Stream<S>,S,Stream<S>>- Parameters:
input- the input flowable- Returns:
-
-