object Flow

Source
Flow.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Flow
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def create[T](): Flow[T, T, NotUsed]

    Create a Flow which can process elements of type T.

  2. 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)

  3. 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.

  4. def fromProcessor[I, O](processorFactory: Creator[Processor[I, O]]): Flow[I, O, NotUsed]
  5. def fromProcessorMat[I, O, Mat](processorFactory: Creator[Pair[Processor[I, O], Mat]]): Flow[I, O, Mat]
  6. def fromSinkAndSource[I, O](sink: Graph[SinkShape[I], _], source: Graph[SourceShape[O], _]): Flow[I, O, NotUsed]

    Helper to create Flow from a Sinkand a Source.

  7. 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 a Sinkand a Source.

  8. def of[T](clazz: Class[T]): Flow[T, T, NotUsed]

    Create a Flow which can process elements of type T.