object Flow
- Source
- Flow.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Flow
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
def
create[T](): Flow[T, T, NotUsed]
Create a
Flow
which can process elements of typeT
. -
def
fromFunction[I, O](f: Function[I, O]): Flow[I, O, 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.create[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: Creator[Processor[I, O]]): Flow[I, O, NotUsed]
- def fromProcessorMat[I, O, Mat](processorFactory: Creator[Pair[Processor[I, O], Mat]]): Flow[I, O, Mat]
-
def
fromSinkAndSource[I, O](sink: Graph[SinkShape[I], _], source: Graph[SourceShape[O], _]): Flow[I, O, NotUsed]
Helper to create
Flow
from aSink
and aSource
. -
def
fromSinkAndSourceMat[I, O, M1, M2, M](sink: Graph[SinkShape[I], M1], source: Graph[SourceShape[O], M2], combine: Function2[M1, M2, M]): Flow[I, O, M]
Helper to create
Flow
from aSink
and aSource
. -
def
of[T](clazz: Class[T]): Flow[T, T, NotUsed]
Create a
Flow
which can process elements of typeT
.