Type-level accessor for the shape parameter of this graph.
Type-level accessor for the shape parameter of this graph.
Add the given attributes to this Graph.
Add the given attributes to this Graph. If the specific attribute was already present on this graph this means the added attribute will be more specific than the existing one. If this Source is a composite of multiple graphs, new attributes on the composite will be less specific than attributes set directly on the individual graphs of the composite.
Put an asynchronous boundary around this Graph
Put an asynchronous boundary around this Graph
Run the graph on this dispatcher
Set the input buffer to this size for the graph
Put an asynchronous boundary around this Graph
Put an asynchronous boundary around this Graph
Run the graph on this dispatcher
Put an asynchronous boundary around this Graph
Put an asynchronous boundary around this Graph
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.
Stops automatic context propagation from here and converts this to a regular stream of a pair of (data, context).
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.
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.
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.
Context-preserving variant of akka.stream.scaladsl.FlowOps.map.
Context-preserving variant of akka.stream.scaladsl.FlowOps.map.
Context-preserving variant of akka.stream.scaladsl.FlowOps.mapAsync.
Context-preserving variant of akka.stream.scaladsl.FlowOps.mapAsync.
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)
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).
The shape of a graph is all that is externally visible: its inlets and outlets.
The shape of a graph is all that is externally visible: its inlets and outlets.
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.
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:
val statefulRepeat: () ⇒ String ⇒ collection.immutable.Iterable[String] = () ⇒ {
var counter = 0
str ⇒ {
counter = counter + 1
(1 to counter).map(_ ⇒ str)
}
}
Input:
("a", 4) ("b", 5) ("c", 6)
inputElements.statefulMapConcat(statefulRepeat)
Output:
("a", 4)
("b", 5)
("b", 5)
("c", 6)
("c", 6)
("c", 6)
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.
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.
akka.stream.scaladsl.FlowOps.viaMat
A source that provides operations which automatically propagate the context of an element. Only a subset of common operations from FlowOps is supported. As an escape hatch you can use FlowWithContextOps.via to manually provide the context propagation for otherwise unsupported operations.
Can be created by calling Source.startContextPropagation()
API MAY CHANGE