Class PeekLongOperation
- java.lang.Object
-
- org.infinispan.stream.impl.intops.primitive.l.PeekLongOperation
-
- All Implemented Interfaces:
IntermediateOperation<Long,LongStream,Long,LongStream>
public class PeekLongOperation extends Object implements IntermediateOperation<Long,LongStream,Long,LongStream>
Performs peek operation on aLongStream
-
-
Constructor Summary
Constructors Constructor Description PeekLongOperation(LongConsumer consumer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongConsumergetConsumer()voidhandleInjection(ComponentRegistry registry)Handles injection of components for various dependencies that the intermediate operation hasio.reactivex.rxjava3.core.Flowable<Long>mapFlowable(io.reactivex.rxjava3.core.Flowable<Long> input)Performs the intermediate operation on a Flowable.LongStreamperform(LongStream stream)Performs the actualy intermediate operation returning the resulting stream
-
-
-
Constructor Detail
-
PeekLongOperation
public PeekLongOperation(LongConsumer consumer)
-
-
Method Detail
-
perform
public LongStream perform(LongStream stream)
Description copied from interface:IntermediateOperationPerforms the actualy intermediate operation returning the resulting stream- Specified by:
performin interfaceIntermediateOperation<Long,LongStream,Long,LongStream>- Parameters:
stream- the stream to have the operation performed on- Returns:
- the resulting stream after the operation was applied
-
getConsumer
public LongConsumer getConsumer()
-
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<Long,LongStream,Long,LongStream>- Parameters:
registry- the registry to use
-
mapFlowable
public io.reactivex.rxjava3.core.Flowable<Long> mapFlowable(io.reactivex.rxjava3.core.Flowable<Long> 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<Long,LongStream,Long,LongStream>- Parameters:
input- the input flowable- Returns:
-
-