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> |
create()
Create a `Flow` which can process elements of type `T`.
|
<I,O> Flow<I,O,NotUsed> |
fromFunction(Function<I,O> 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(Creator<org.reactivestreams.Processor<I,O>> processorFactory) |
<I,O,Mat> Flow<I,O,Mat> |
fromProcessorMat(Creator<Pair<org.reactivestreams.Processor<I,O>,Mat>> processorFactory) |
<I,O> Flow<I,O,NotUsed> |
fromSinkAndSource(Graph<SinkShape<I>,?> sink,
Graph<SourceShape<O>,?> source)
Helper to create
Flow from a Sink and a Source . |
<I,O,M1,M2,M> |
fromSinkAndSourceMat(Graph<SinkShape<I>,M1> sink,
Graph<SourceShape<O>,M2> source,
Function2<M1,M2,M> combine)
Helper to create
Flow from a Sink and a Source . |
<T> Flow<T,T,NotUsed> |
of(java.lang.Class<T> clazz)
Create a `Flow` which can process elements of type `T`.
|
public static final Flow$ MODULE$
public <T> Flow<T,T,NotUsed> create()
public <I,O> Flow<I,O,NotUsed> fromProcessor(Creator<org.reactivestreams.Processor<I,O>> processorFactory)
public <I,O,Mat> Flow<I,O,Mat> fromProcessorMat(Creator<Pair<org.reactivestreams.Processor<I,O>,Mat>> processorFactory)
public <I,O> Flow<I,O,NotUsed> fromFunction(Function<I,O> f)
Flow.create[T].map(f)
f
- (undocumented)public <T> Flow<T,T,NotUsed> of(java.lang.Class<T> clazz)
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
.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, Function2<M1,M2,M> combine)
Flow
from a Sink
and a Source
.sink
- (undocumented)source
- (undocumented)combine
- (undocumented)