Builder

org.apache.pekko.stream.scaladsl.GraphDSL.Builder
class Builder[+M]

Attributes

Source
Graph.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def add[S <: Shape](graph: Graph[S, _]): S

Import a graph into this module, performing a deep copy, discarding its materialized value and returning the copied Ports that are now to be connected.

Import a graph into this module, performing a deep copy, discarding its materialized value and returning the copied Ports that are now to be connected.

Attributes

Source
Graph.scala
def asJava: Builder[M]

Converts this Scala DSL element to it's Java DSL counterpart.

Converts this Scala DSL element to it's Java DSL counterpart.

Attributes

Source
Graph.scala

Returns an Outlet that gives access to the materialized value of this graph. Once the graph is materialized this outlet will emit exactly one element which is the materialized value. It is possible to expose this outlet as an externally accessible outlet of a Source, Sink, Flow or BidiFlow.

Returns an Outlet that gives access to the materialized value of this graph. Once the graph is materialized this outlet will emit exactly one element which is the materialized value. It is possible to expose this outlet as an externally accessible outlet of a Source, Sink, Flow or BidiFlow.

It is possible to call this method multiple times to get multiple Outlet instances if necessary. All of the outlets will emit the materialized value.

Be careful to not to feed the result of this outlet to an operator that produces the materialized value itself (for example to a Sink#fold that contributes to the materialized value) since that might lead to an unresolvable dependency cycle.

Attributes

Returns

The outlet that will emit the materialized value.

Source
Graph.scala