FlowWithContextOps
Shared stream operations for FlowWithContext and SourceWithContext that automatically propagate a context element with each data element.
Attributes
- Source
- FlowWithContextOps.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
Members list
Type members
Value members
Abstract methods
Data variant of pekko.stream.scaladsl.FlowOps.alsoTo
Data variant of pekko.stream.scaladsl.FlowOps.alsoTo
Attributes
- See also
- Since
-
1.1.0
- Source
- FlowWithContextOps.scala
Context variant of pekko.stream.scaladsl.FlowOps.alsoTo
Context variant of pekko.stream.scaladsl.FlowOps.alsoTo
Attributes
- See also
- Since
-
1.1.0
- Source
- FlowWithContextOps.scala
Transform this flow by the regular flow. The given flow works on the data portion of the stream and ignores the context.
Transform this flow by the regular flow. The given flow works on the data portion of the stream and ignores the context.
The given flow must not re-order, drop or emit multiple elements for one incoming element, the sequence of incoming contexts is re-combined with the outgoing elements of the stream. If a flow not fulfilling this requirement is used the stream will not fail but continue running in a corrupt state and re-combine incorrect pairs of elements and contexts or deadlock.
For more background on these requirements see https://pekko.apache.org/docs/pekko/current/stream/stream-context.html.
Attributes
- Source
- FlowWithContextOps.scala
Transform this flow by the regular flow. The given flow must support manual context propagation by taking and producing tuples of (data, context).
Transform this flow by the regular flow. The given flow must support manual context propagation by taking and producing tuples of (data, context).
It is up to the implementer to ensure the inner flow does not exhibit any behavior that is not expected by the downstream elements, such as reordering. For more background on these requirements see https://pekko.apache.org/docs/pekko/current/stream/stream-context.html.
This can be used as an escape hatch for operations that are not (yet) provided with automatic context propagation here.
Attributes
- See also
- Source
- FlowWithContextOps.scala
Transform this flow by the regular flow. The given flow must support manual context propagation by taking and producing tuples of (data, context).
Transform this flow by the regular flow. The given flow must support manual context propagation by taking and producing tuples of (data, context).
It is up to the implementer to ensure the inner flow does not exhibit any behavior that is not expected by the downstream elements, such as reordering. For more background on these requirements see https://pekko.apache.org/docs/pekko/current/stream/stream-context.html.
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.
Attributes
- See also
- Source
- FlowWithContextOps.scala
Data variant of pekko.stream.scaladsl.FlowOps.wireTap
Data variant of pekko.stream.scaladsl.FlowOps.wireTap
Attributes
- See also
- Since
-
1.1.0
- Source
- FlowWithContextOps.scala
Context variant of pekko.stream.scaladsl.FlowOps.wireTap
Context variant of pekko.stream.scaladsl.FlowOps.wireTap
Attributes
- See also
- Since
-
1.1.0
- Source
- FlowWithContextOps.scala
Concrete methods
Context-preserving variant of pekko.stream.scaladsl.FlowOps.collect.
Context-preserving variant of pekko.stream.scaladsl.FlowOps.collect.
Note, that the context of elements that are filtered out is skipped as well.
Attributes
- See also
- Source
- FlowWithContextOps.scala
Context-preserving variant of pekko.stream.scaladsl.FlowOps.filter.
Context-preserving variant of pekko.stream.scaladsl.FlowOps.filter.
Note, that the context of elements that are filtered out is skipped as well.
Attributes
- See also
- Source
- FlowWithContextOps.scala
Context-preserving variant of pekko.stream.scaladsl.FlowOps.filterNot.
Context-preserving variant of pekko.stream.scaladsl.FlowOps.filterNot.
Note, that the context of elements that are filtered out is skipped as well.
Attributes
- See also
- Source
- FlowWithContextOps.scala
Context-preserving variant of pekko.stream.scaladsl.FlowOps.grouped.
Context-preserving variant of pekko.stream.scaladsl.FlowOps.grouped.
Each output group will be associated with a Seq of corresponding context elements.
Attributes
- See also
- Source
- FlowWithContextOps.scala
Context-preserving variant of pekko.stream.scaladsl.FlowOps.log.
Context-preserving variant of pekko.stream.scaladsl.FlowOps.log.
Attributes
- See also
- Source
- FlowWithContextOps.scala
Context-preserving variant of pekko.stream.scaladsl.FlowOps.logWithMarker.
Context-preserving variant of pekko.stream.scaladsl.FlowOps.logWithMarker.
Attributes
- See also
- Source
- FlowWithContextOps.scala
Context-preserving variant of pekko.stream.scaladsl.FlowOps.map.
Context-preserving variant of pekko.stream.scaladsl.FlowOps.map.
Attributes
- See also
- Source
- FlowWithContextOps.scala
Context-preserving variant of pekko.stream.scaladsl.FlowOps.mapAsync.
Context-preserving variant of pekko.stream.scaladsl.FlowOps.mapAsync.
Attributes
- See also
- Source
- FlowWithContextOps.scala
Context-preserving variant of pekko.stream.scaladsl.FlowOps.mapAsyncPartitioned.
Context-preserving variant of pekko.stream.scaladsl.FlowOps.mapAsyncPartitioned.
Attributes
- See also
- Since
-
1.1.0
- Source
- FlowWithContextOps.scala
Context-preserving variant of pekko.stream.scaladsl.FlowOps.mapAsyncPartitionedUnordered.
Context-preserving variant of pekko.stream.scaladsl.FlowOps.mapAsyncPartitionedUnordered.
Attributes
- See also
- Since
-
1.1.0
- Source
- FlowWithContextOps.scala
Context-preserving variant of pekko.stream.scaladsl.FlowOps.mapConcat.
Context-preserving variant of pekko.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)
Attributes
- See also
- Source
- FlowWithContextOps.scala
Apply the given function to each context element (leaving the data elements unchanged).
Apply the given function to each context element (leaving the data elements unchanged).
Attributes
- Source
- FlowWithContextOps.scala
Context-preserving variant of pekko.stream.scaladsl.FlowOps.mapError.
Context-preserving variant of pekko.stream.scaladsl.FlowOps.mapError.
Attributes
- See also
- Source
- FlowWithContextOps.scala
Context-preserving variant of pekko.stream.scaladsl.FlowOps.sliding.
Context-preserving variant of pekko.stream.scaladsl.FlowOps.sliding.
Each output group will be associated with a Seq of corresponding context elements.
Attributes
- See also
- Source
- FlowWithContextOps.scala
Context-preserving variant of pekko.stream.scaladsl.FlowOps.throttle.
Context-preserving variant of pekko.stream.scaladsl.FlowOps.throttle.
Attributes
- See also
- Source
- FlowWithContextOps.scala
Context-preserving variant of pekko.stream.scaladsl.FlowOps.throttle.
Context-preserving variant of pekko.stream.scaladsl.FlowOps.throttle.
Attributes
- See also
- Source
- FlowWithContextOps.scala
Context-preserving variant of pekko.stream.scaladsl.FlowOps.throttle.
Context-preserving variant of pekko.stream.scaladsl.FlowOps.throttle.
Attributes
- See also
- Source
- FlowWithContextOps.scala
Context-preserving variant of pekko.stream.scaladsl.FlowOps.throttle.
Context-preserving variant of pekko.stream.scaladsl.FlowOps.throttle.
Attributes
- See also
- Source
- FlowWithContextOps.scala