Package org.apache.pekko.stream.scaladsl
Class JavaFlowSupport.Flow$
java.lang.Object
org.apache.pekko.stream.scaladsl.JavaFlowSupport.Flow$
- Enclosing class:
- JavaFlowSupport
pekko.stream.scaladsl.Flow factories operating with java.util.concurrent.Flow.* interfaces.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JavaFlowSupport.Flow$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromProcessor(scala.Function0<Flow.Processor<I, O>> processorFactory) Creates a Flow from a Reactive StreamsProcessor<I,O, M> Flow<I, O, M> fromProcessorMat(scala.Function0<scala.Tuple2<Flow.Processor<I, O>, M>> processorFactory) Creates a Flow from a Reactive StreamsFlow.Processorand returns a materialized value.<In,Out, Mat>
RunnableGraph<Flow.Processor<In,Out>> toProcessor(Flow<In, Out, Mat> self) Converts this Flow to aRunnableGraphthat materializes to a Reactive StreamsFlow.Processorwhich implements the operations encapsulated by this Flow.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Flow$
public Flow$()
-
-
Method Details
-
fromProcessor
public <I,O> Flow<I,O, fromProcessorNotUsed> (scala.Function0<Flow.Processor<I, O>> processorFactory) Creates a Flow from a Reactive StreamsProcessor -
fromProcessorMat
public <I,O, Flow<I,M> O, fromProcessorMatM> (scala.Function0<scala.Tuple2<Flow.Processor<I, O>, M>> processorFactory) Creates a Flow from a Reactive StreamsFlow.Processorand returns a materialized value. -
toProcessor
Converts this Flow to aRunnableGraphthat materializes to a Reactive StreamsFlow.Processorwhich implements the operations encapsulated by this Flow. Every materialization results in a new Processor instance, i.e. the returnedRunnableGraphis reusable.- Returns:
- A
RunnableGraphthat materializes to a Processor when run() is called on it.
-