object Flow
- Source
- Flow.scala
- Alphabetic
- By Inheritance
- Flow
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
apply[T]: Flow[T, T, NotUsed]
Returns a
Flow
which outputs all its inputs. -
def
fromFunction[A, B](f: (A) ⇒ B): Flow[A, B, NotUsed]
Creates a [Flow] which will use the given function to transform its inputs to outputs.
Creates a [Flow] which will use the given function to transform its inputs to outputs. It is equivalent to
Flow[T].map(f)
-
def
fromGraph[I, O, M](g: Graph[FlowShape[I, O], M]): Flow[I, O, M]
A graph with the shape of a flow logically is a flow, this method makes it so also in type.
-
def
fromProcessor[I, O](processorFactory: () ⇒ Processor[I, O]): Flow[I, O, NotUsed]
Creates a Flow from a Reactive Streams org.reactivestreams.Processor
-
def
fromProcessorMat[I, O, M](processorFactory: () ⇒ (Processor[I, O], M)): Flow[I, O, M]
Creates a Flow from a Reactive Streams org.reactivestreams.Processor and returns a materialized value.
-
def
fromSinkAndSource[I, O](sink: Graph[SinkShape[I], _], source: Graph[SourceShape[O], _]): Flow[I, O, NotUsed]
Creates a
Flow
from aSink
and aSource
where the Flow's input will be sent to the Sink and the Flow's output will come from the Source. -
def
fromSinkAndSourceMat[I, O, M1, M2, M](sink: Graph[SinkShape[I], M1], source: Graph[SourceShape[O], M2])(combine: (M1, M2) ⇒ M): Flow[I, O, M]
Creates a
Flow
from aSink
and aSource
where the Flow's input will be sent to the Sink and the Flow's output will come from the Source.Creates a
Flow
from aSink
and aSource
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 thesink
andsource
into the materialized value of the resulting Flow.