Trait

akka.stream.scaladsl

FlowWithContextOps

Related Doc: package scaladsl

Permalink

trait FlowWithContextOps[+Ctx, +Out, +Mat] extends AnyRef

Shared stream operations for FlowWithContext and SourceWithContext that automatically propagate a context element with each data element.

API MAY CHANGE

Annotations
@ApiMayChange()
Source
FlowWithContextOps.scala
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FlowWithContextOps
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Repr[+C, +O] = ReprMat[C, O, Mat]

    Permalink
  2. abstract type ReprMat[+C, +O, +M] <: FlowWithContextOps[C, O, M] { type ReprMat[+CC, +OO, +MatMat] = FlowWithContextOps.this.ReprMat[CC,OO,MatMat] }

    Permalink

Abstract Value Members

  1. abstract def via[Ctx2, Out2, Mat2](flow: Graph[FlowShape[(Out, Ctx), (Out2, Ctx2)], Mat2]): Repr[Ctx2, Out2]

    Permalink

    Transform this flow by the regular flow.

    Transform this flow by the regular flow. The given flow must support manual context propagation by taking and producing tuples of (data, context).

    This can be used as an escape hatch for operations that are not (yet) provided with automatic context propagation here.

    See also

    akka.stream.scaladsl.FlowOps.via

  2. abstract def viaMat[Ctx2, Out2, Mat2, Mat3](flow: Graph[FlowShape[(Out, Ctx), (Out2, Ctx2)], Mat2])(combine: (Mat, Mat2) ⇒ Mat3): ReprMat[Ctx2, Out2, Mat3]

    Permalink

    Transform this flow by the regular flow.

    Transform this flow by the regular flow. The given flow must support manual context propagation by taking and producing tuples of (data, context).

    This can be used as an escape hatch for operations that are not (yet) provided with automatic context propagation here.

    The combine function is used to compose the materialized values of this flow and that flow into the materialized value of the resulting Flow.

    See also

    akka.stream.scaladsl.FlowOps.viaMat

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from FlowWithContextOps[Ctx, Out, Mat] to any2stringadd[FlowWithContextOps[Ctx, Out, Mat]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (FlowWithContextOps[Ctx, Out, Mat], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from FlowWithContextOps[Ctx, Out, Mat] to ArrowAssoc[FlowWithContextOps[Ctx, Out, Mat]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def collect[Out2](f: PartialFunction[Out, Out2]): Repr[Ctx, Out2]

    Permalink

    Context-preserving variant of akka.stream.scaladsl.FlowOps.collect.

    Context-preserving variant of akka.stream.scaladsl.FlowOps.collect.

    Note, that the context of elements that are filtered out is skipped as well.

    See also

    akka.stream.scaladsl.FlowOps.collect

  9. def ensuring(cond: (FlowWithContextOps[Ctx, Out, Mat]) ⇒ Boolean, msg: ⇒ Any): FlowWithContextOps[Ctx, Out, Mat]

    Permalink
    Implicit information
    This member is added by an implicit conversion from FlowWithContextOps[Ctx, Out, Mat] to Ensuring[FlowWithContextOps[Ctx, Out, Mat]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (FlowWithContextOps[Ctx, Out, Mat]) ⇒ Boolean): FlowWithContextOps[Ctx, Out, Mat]

    Permalink
    Implicit information
    This member is added by an implicit conversion from FlowWithContextOps[Ctx, Out, Mat] to Ensuring[FlowWithContextOps[Ctx, Out, Mat]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: ⇒ Any): FlowWithContextOps[Ctx, Out, Mat]

    Permalink
    Implicit information
    This member is added by an implicit conversion from FlowWithContextOps[Ctx, Out, Mat] to Ensuring[FlowWithContextOps[Ctx, Out, Mat]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): FlowWithContextOps[Ctx, Out, Mat]

    Permalink
    Implicit information
    This member is added by an implicit conversion from FlowWithContextOps[Ctx, Out, Mat] to Ensuring[FlowWithContextOps[Ctx, Out, Mat]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. def filter(pred: (Out) ⇒ Boolean): Repr[Ctx, Out]

    Permalink

    Context-preserving variant of akka.stream.scaladsl.FlowOps.filter.

    Context-preserving variant of akka.stream.scaladsl.FlowOps.filter.

    Note, that the context of elements that are filtered out is skipped as well.

    See also

    akka.stream.scaladsl.FlowOps.filter

  16. def filterNot(pred: (Out) ⇒ Boolean): Repr[Ctx, Out]

    Permalink

    Context-preserving variant of akka.stream.scaladsl.FlowOps.filterNot.

    Context-preserving variant of akka.stream.scaladsl.FlowOps.filterNot.

    Note, that the context of elements that are filtered out is skipped as well.

    See also

    akka.stream.scaladsl.FlowOps.filterNot

  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from FlowWithContextOps[Ctx, Out, Mat] to StringFormat[FlowWithContextOps[Ctx, Out, Mat]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def grouped(n: Int): Repr[Seq[Ctx], Seq[Out]]

    Permalink

    Context-preserving variant of akka.stream.scaladsl.FlowOps.grouped.

    Context-preserving variant of akka.stream.scaladsl.FlowOps.grouped.

    Each output group will be associated with a Seq of corresponding context elements.

    See also

    akka.stream.scaladsl.FlowOps.grouped

  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def map[Out2](f: (Out) ⇒ Out2): Repr[Ctx, Out2]

    Permalink

    Context-preserving variant of akka.stream.scaladsl.FlowOps.map.

  24. def mapAsync[Out2](parallelism: Int)(f: (Out) ⇒ Future[Out2]): Repr[Ctx, Out2]

    Permalink

    Context-preserving variant of akka.stream.scaladsl.FlowOps.mapAsync.

  25. def mapConcat[Out2](f: (Out) ⇒ Iterable[Out2]): Repr[Ctx, Out2]

    Permalink

    Context-preserving variant of akka.stream.scaladsl.FlowOps.mapConcat.

    Context-preserving variant of akka.stream.scaladsl.FlowOps.mapConcat.

    The context of the input element will be associated with each of the output elements calculated from this input element.

    Example:

    def dup(element: String) = Seq(element, element)

    Input:

    ("a", 1) ("b", 2)

    inputElements.mapConcat(dup)

    Output:

    ("a", 1) ("a", 1) ("b", 2) ("b", 2)

    See also

    akka.stream.scaladsl.FlowOps.mapConcat

  26. def mapContext[Ctx2](f: (Ctx) ⇒ Ctx2): Repr[Ctx2, Out]

    Permalink

    Apply the given function to each context element (leaving the data elements unchanged).

  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. def sliding(n: Int, step: Int = 1): Repr[Seq[Ctx], Seq[Out]]

    Permalink

    Context-preserving variant of akka.stream.scaladsl.FlowOps.sliding.

    Context-preserving variant of akka.stream.scaladsl.FlowOps.sliding.

    Each output group will be associated with a Seq of corresponding context elements.

    See also

    akka.stream.scaladsl.FlowOps.sliding

  31. def statefulMapConcat[Out2](f: () ⇒ (Out) ⇒ Iterable[Out2]): Repr[Ctx, Out2]

    Permalink

    Context-preserving variant of akka.stream.scaladsl.FlowOps.statefulMapConcat.

    Context-preserving variant of akka.stream.scaladsl.FlowOps.statefulMapConcat.

    The context of the input element will be associated with each of the output elements calculated from this input element.

    Example:

    def dup(element: String) = Seq(element, element)

    Input:

    ("a", 1) ("b", 2)

    inputElements.statefulMapConcat(() => dup)

    Output:

    ("a", 1) ("a", 1) ("b", 2) ("b", 2)

    See also

    akka.stream.scaladsl.FlowOps.statefulMapConcat

  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. def [B](y: B): (FlowWithContextOps[Ctx, Out, Mat], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from FlowWithContextOps[Ctx, Out, Mat] to ArrowAssoc[FlowWithContextOps[Ctx, Out, Mat]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from FlowWithContextOps[Ctx, Out, Mat] to any2stringadd[FlowWithContextOps[Ctx, Out, Mat]]

Inherited by implicit conversion StringFormat from FlowWithContextOps[Ctx, Out, Mat] to StringFormat[FlowWithContextOps[Ctx, Out, Mat]]

Inherited by implicit conversion Ensuring from FlowWithContextOps[Ctx, Out, Mat] to Ensuring[FlowWithContextOps[Ctx, Out, Mat]]

Inherited by implicit conversion ArrowAssoc from FlowWithContextOps[Ctx, Out, Mat] to ArrowAssoc[FlowWithContextOps[Ctx, Out, Mat]]

Ungrouped