Package org.apache.pekko.stream.javadsl
Class GraphDSL.Builder<Mat>
java.lang.Object
org.apache.pekko.stream.javadsl.GraphDSL.Builder<Mat>
- Enclosing class:
- GraphDSL
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classfinal class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<S extends Shape>
SImport a graph into this module, performing a deep copy, discarding its materialized value and returning the copied Ports that are now to be connected.<I,O> GraphDSL.Builder<Mat>.ForwardOps<O> <T> GraphDSL.Builder<Mat>.ForwardOps<T><T> GraphDSL.Builder<Mat>.ForwardOps<T>from(SourceShape<T> src) <I,O> GraphDSL.Builder<Mat>.ForwardOps<O> from(UniformFanInShape<I, O> j) <I,O> GraphDSL.Builder<Mat>.ForwardOps<O> from(UniformFanOutShape<I, O> j) Returns anOutletthat gives access to the materialized value of this graph.<I,O> GraphDSL.Builder<Mat>.ReverseOps<I> <T> GraphDSL.Builder<Mat>.ReverseOps<T><T> GraphDSL.Builder<Mat>.ReverseOps<T><I,O> GraphDSL.Builder<Mat>.ReverseOps<I> to(UniformFanInShape<I, O> j) <I,O> GraphDSL.Builder<Mat>.ReverseOps<I> to(UniformFanOutShape<I, O> j)
-
Constructor Details
-
Builder
-
-
Method Details
-
add
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. -
from
-
from
-
from
-
from
-
from
-
materializedValue
Returns anOutletthat 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 aSource,Sink,FloworBidiFlow.It is possible to call this method multiple times to get multiple
Outletinstances if necessary. All of the outlets will emit the materialized value.Be careful to not to feed the result of this outlet to a operator that produces the materialized value itself (for example to a
Sink.fold(U, org.apache.pekko.japi.function.Function2<U, In, U>)that contributes to the materialized value) since that might lead to an unresolvable dependency cycle.- Returns:
- The outlet that will emit the materialized value.
-
to
-
to
-
to
-
to
-
to
-