A source that provides operations which automatically propagate the context of an element. Only a subset of common operations from Source is supported. As an escape hatch you can use SourceWithContext#via to manually provide the context propagation for otherwise unsupported operations.
Can be created by calling Source.asSourceWithContext
Attributes
- Companion
- object
- Source
- SourceWithContext.scala
- Graph
-
- Supertypes
Members list
Type members
Inherited types
Type-level accessor for the shape parameter of this graph.
Type-level accessor for the shape parameter of this graph.
Attributes
- Inherited from:
- Graph
- Source
- Graph.scala
Value members
Concrete methods
Attributes
- Source
- SourceWithContext.scala
Stops automatic context propagation from here and converts this to a regular stream of a pair of (data, context).
Stops automatic context propagation from here and converts this to a regular stream of a pair of (data, context).
Attributes
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Source.collect.
Context-preserving variant of pekko.stream.javadsl.Source.collect.
Note, that the context of elements that are filtered out is skipped as well.
Attributes
- See also
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Source.filter.
Context-preserving variant of pekko.stream.javadsl.Source.filter.
Note, that the context of elements that are filtered out is skipped as well.
Attributes
- See also
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Source.filterNot.
Context-preserving variant of pekko.stream.javadsl.Source.filterNot.
Note, that the context of elements that are filtered out is skipped as well.
Attributes
- See also
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Source.grouped.
Context-preserving variant of pekko.stream.javadsl.Source.grouped.
Each output group will be associated with a Seq of corresponding context elements.
Attributes
- See also
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Source.log.
Context-preserving variant of pekko.stream.javadsl.Source.log.
Attributes
- See also
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Flow.log.
Context-preserving variant of pekko.stream.javadsl.Flow.log.
Attributes
- See also
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Flow.log.
Context-preserving variant of pekko.stream.javadsl.Flow.log.
Attributes
- See also
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Flow.log.
Context-preserving variant of pekko.stream.javadsl.Flow.log.
Attributes
- See also
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Source.logWithMarker.
Context-preserving variant of pekko.stream.javadsl.Source.logWithMarker.
Attributes
- See also
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Flow.logWithMarker.,
Context-preserving variant of pekko.stream.javadsl.Flow.logWithMarker.,
Attributes
- See also
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Flow.logWithMarker.
Context-preserving variant of pekko.stream.javadsl.Flow.logWithMarker.
Attributes
- See also
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Flow.logWithMarker.
Context-preserving variant of pekko.stream.javadsl.Flow.logWithMarker.
Attributes
- See also
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Source.map.
Context-preserving variant of pekko.stream.javadsl.Source.map.
Attributes
- See also
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Source.mapAsync.
Context-preserving variant of pekko.stream.javadsl.Source.mapAsync.
Attributes
- See also
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Source.mapAsyncPartitioned.
Context-preserving variant of pekko.stream.javadsl.Source.mapAsyncPartitioned.
Attributes
- See also
- Since
-
1.1.0
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Source.mapAsyncPartitionedUnordered.
Context-preserving variant of pekko.stream.javadsl.Source.mapAsyncPartitionedUnordered.
Attributes
- See also
- Since
-
1.1.0
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Source.mapConcat.
Context-preserving variant of pekko.stream.javadsl.Source.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
- SourceWithContext.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
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Source.mapError.
Context-preserving variant of pekko.stream.javadsl.Source.mapError.
Attributes
- See also
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Source.mapMaterializedValue.
Context-preserving variant of pekko.stream.javadsl.Source.mapMaterializedValue.
Attributes
- See also
- Source
- SourceWithContext.scala
Connect this pekko.stream.javadsl.SourceWithContext to a pekko.stream.javadsl.Sink and run it. The returned value is the materialized value of the Sink.
Connect this pekko.stream.javadsl.SourceWithContext to a pekko.stream.javadsl.Sink and run it. The returned value is the materialized value of the Sink.
Attributes
- Source
- SourceWithContext.scala
Connect this pekko.stream.javadsl.SourceWithContext to a pekko.stream.javadsl.Sink and run it. The returned value is the materialized value of the Sink.
Connect this pekko.stream.javadsl.SourceWithContext to a pekko.stream.javadsl.Sink and run it. The returned value is the materialized value of the Sink.
Prefer the method taking an ActorSystem unless you have special requirements.
Attributes
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Source.sliding.
Context-preserving variant of pekko.stream.javadsl.Source.sliding.
Each output group will be associated with a Seq of corresponding context elements.
Attributes
- See also
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Source.throttle.
Context-preserving variant of pekko.stream.javadsl.Source.throttle.
Attributes
- See also
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Source.throttle.
Context-preserving variant of pekko.stream.javadsl.Source.throttle.
Attributes
- See also
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Source.throttle.
Context-preserving variant of pekko.stream.javadsl.Source.throttle.
Attributes
- See also
- Source
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Source.throttle.
Context-preserving variant of pekko.stream.javadsl.Source.throttle.
Attributes
- See also
- Source
- SourceWithContext.scala
Connect this pekko.stream.javadsl.SourceWithContext to a pekko.stream.javadsl.Sink, concatenating the processing steps of both.
Connect this pekko.stream.javadsl.SourceWithContext to a pekko.stream.javadsl.Sink, concatenating the processing steps of both.
Attributes
- Source
- SourceWithContext.scala
Connect this pekko.stream.javadsl.SourceWithContext to a pekko.stream.javadsl.Sink, concatenating the processing steps of both.
Connect this pekko.stream.javadsl.SourceWithContext to a pekko.stream.javadsl.Sink, concatenating the processing steps of both.
Attributes
- Source
- SourceWithContext.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
- SourceWithContext.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
- SourceWithContext.scala
Context-preserving variant of pekko.stream.javadsl.Source.withAttributes.
Context-preserving variant of pekko.stream.javadsl.Source.withAttributes.
Attributes
- See also
- Definition Classes
- Source
- SourceWithContext.scala
Inherited methods
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.
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.
Attributes
- Inherited from:
- Graph
- Source
- Graph.scala
Put an asynchronous boundary around this Graph
Put an asynchronous boundary around this Graph
Value parameters
- dispatcher
-
Run the graph on this dispatcher
- inputBufferSize
-
Set the input buffer to this size for the graph
Attributes
- Inherited from:
- Graph
- Source
- Graph.scala
Put an asynchronous boundary around this Graph
Put an asynchronous boundary around this Graph
Value parameters
- dispatcher
-
Run the graph on this dispatcher
Attributes
- Inherited from:
- Graph
- Source
- Graph.scala
Put an asynchronous boundary around this Graph
Attributes
- Inherited from:
- Graph
- Source
- Graph.scala
Specifies the name of the Graph. If the name is null or empty the name is ignored, i.e. Attributes.none is returned.
Specifies the name of the Graph. If the name is null or empty the name is ignored, i.e. Attributes.none is returned.
Attributes
- Inherited from:
- Graph
- Source
- Graph.scala
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.
Attributes
- Definition Classes
-
GraphDelegate -> Graph
- Inherited from:
- GraphDelegate (hidden)
- Source
- Graph.scala