Package akka.stream.javadsl
Class GraphDSL.Builder<Mat>
- java.lang.Object
-
- akka.stream.javadsl.GraphDSL.Builder<Mat>
-
- Enclosing class:
- GraphDSL
public static final class GraphDSL.Builder<Mat> extends java.lang.Object
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
GraphDSL.Builder.ForwardOps<T>
class
GraphDSL.Builder.ReverseOps<T>
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <S extends Shape>
Sadd(Graph<S,?> graph)
akka.stream.scaladsl.GraphDSL.Builder<Mat>
delegate()
<I,O>
GraphDSL.Builder.ForwardOps<O>from(FlowShape<I,O> f)
<T> GraphDSL.Builder.ForwardOps<T>
from(Outlet<T> out)
<T> GraphDSL.Builder.ForwardOps<T>
from(SourceShape<T> src)
<I,O>
GraphDSL.Builder.ForwardOps<O>from(UniformFanInShape<I,O> j)
<I,O>
GraphDSL.Builder.ForwardOps<O>from(UniformFanOutShape<I,O> j)
Outlet<Mat>
materializedValue()
Returns anOutlet
that gives access to the materialized value of this graph.<I,O>
GraphDSL.Builder.ReverseOps<I>to(FlowShape<I,O> f)
<T> GraphDSL.Builder.ReverseOps<T>
to(Inlet<T> in)
<T> GraphDSL.Builder.ReverseOps<T>
to(SinkShape<T> dst)
<I,O>
GraphDSL.Builder.ReverseOps<I>to(UniformFanInShape<I,O> j)
<I,O>
GraphDSL.Builder.ReverseOps<I>to(UniformFanOutShape<I,O> j)
-
-
-
Constructor Detail
-
Builder
public Builder(akka.stream.scaladsl.GraphDSL.Builder<Mat> delegate)
-
-
Method Detail
-
delegate
public akka.stream.scaladsl.GraphDSL.Builder<Mat> delegate()
-
from
public <T> GraphDSL.Builder.ForwardOps<T> from(Outlet<T> out)
-
from
public <T> GraphDSL.Builder.ForwardOps<T> from(SourceShape<T> src)
-
from
public <I,O> GraphDSL.Builder.ForwardOps<O> from(FlowShape<I,O> f)
-
from
public <I,O> GraphDSL.Builder.ForwardOps<O> from(UniformFanInShape<I,O> j)
-
from
public <I,O> GraphDSL.Builder.ForwardOps<O> from(UniformFanOutShape<I,O> j)
-
materializedValue
public Outlet<Mat> materializedValue()
Returns anOutlet
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 aSource
,Sink
,Flow
orBidiFlow
.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 a operator that produces the materialized value itself (for example to a
Sink.fold(U, akka.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
public <T> GraphDSL.Builder.ReverseOps<T> to(Inlet<T> in)
-
to
public <T> GraphDSL.Builder.ReverseOps<T> to(SinkShape<T> dst)
-
to
public <I,O> GraphDSL.Builder.ReverseOps<I> to(FlowShape<I,O> f)
-
to
public <I,O> GraphDSL.Builder.ReverseOps<I> to(UniformFanInShape<I,O> j)
-
to
public <I,O> GraphDSL.Builder.ReverseOps<I> to(UniformFanOutShape<I,O> j)
-
-