public class Flow$
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Flow$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
Flow$() |
Modifier and Type | Method and Description |
---|---|
<T> Flow<T,T,NotUsed> |
apply()
Returns a
Flow which outputs all its inputs. |
<A,B> Flow<A,B,NotUsed> |
fromFunction(scala.Function1<A,B> f)
Creates a [Flow] which will use the given function to transform its inputs to outputs.
|
<I,O,M> Flow<I,O,M> |
fromGraph(Graph<FlowShape<I,O>,M> g)
A graph with the shape of a flow logically is a flow, this method makes
it so also in type.
|
<I,O> Flow<I,O,NotUsed> |
fromProcessor(scala.Function0<org.reactivestreams.Processor<I,O>> processorFactory)
Creates a Flow from a Reactive Streams
Processor |
<I,O,M> Flow<I,O,M> |
fromProcessorMat(scala.Function0<scala.Tuple2<org.reactivestreams.Processor<I,O>,M>> processorFactory)
Creates a Flow from a Reactive Streams
Processor and returns a materialized value. |
<I,O> Flow<I,O,NotUsed> |
fromSinkAndSource(Graph<SinkShape<I>,?> sink,
Graph<SourceShape<O>,?> source)
Creates a
Flow from a Sink and a Source where the Flow's input
will be sent to the Sink and the Flow's output will come from the Source. |
<I,O,M1,M2,M> |
fromSinkAndSourceMat(Graph<SinkShape<I>,M1> sink,
Graph<SourceShape<O>,M2> source,
scala.Function2<M1,M2,M> combine)
Creates a
Flow from a Sink and a Source where the Flow's input
will be sent to the Sink and the Flow's output will come from the Source. |
public static final Flow$ MODULE$
public <I,O> Flow<I,O,NotUsed> fromProcessor(scala.Function0<org.reactivestreams.Processor<I,O>> processorFactory)
Processor
processorFactory
- (undocumented)public <I,O,M> Flow<I,O,M> fromProcessorMat(scala.Function0<scala.Tuple2<org.reactivestreams.Processor<I,O>,M>> processorFactory)
Processor
and returns a materialized value.processorFactory
- (undocumented)public <T> Flow<T,T,NotUsed> apply()
Flow
which outputs all its inputs.public <A,B> Flow<A,B,NotUsed> fromFunction(scala.Function1<A,B> f)
Flow[T].map(f)
f
- (undocumented)public <I,O,M> Flow<I,O,M> fromGraph(Graph<FlowShape<I,O>,M> g)
g
- (undocumented)public <I,O> Flow<I,O,NotUsed> fromSinkAndSource(Graph<SinkShape<I>,?> sink, Graph<SourceShape<O>,?> source)
Flow
from a Sink
and a Source
where the Flow's input
will be sent to the Sink and the Flow's output will come from the Source.sink
- (undocumented)source
- (undocumented)public <I,O,M1,M2,M> Flow<I,O,M> fromSinkAndSourceMat(Graph<SinkShape<I>,M1> sink, Graph<SourceShape<O>,M2> source, scala.Function2<M1,M2,M> combine)
Flow
from a Sink
and a Source
where the Flow's input
will be sent to the Sink and the Flow's output will come from the Source.
The combine
function is used to compose the materialized values of the sink
and source
into the materialized value of the resulting Flow
.
sink
- (undocumented)source
- (undocumented)combine
- (undocumented)