Package org.apache.pekko.stream.scaladsl
Class RunnableGraph<Mat>
java.lang.Object
org.apache.pekko.stream.scaladsl.RunnableGraph<Mat>
- All Implemented Interfaces:
Serializable,Graph<ClosedShape,,Mat> scala.Equals,scala.Product
public final class RunnableGraph<Mat>
extends Object
implements Graph<ClosedShape,Mat>, scala.Product, Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.pekko.stream.Graph
Graph.GraphMapMatVal<S extends Shape,M> -
Constructor Summary
ConstructorsConstructorDescriptionRunnableGraph(org.apache.pekko.stream.impl.TraversalBuilder traversalBuilder) -
Method Summary
Modifier and TypeMethodDescriptionaddAttributes(Attributes attr) Add the given attributes to thisGraph.static <Mat> RunnableGraph<Mat>apply(org.apache.pekko.stream.impl.TraversalBuilder traversalBuilder) Flow with attached input and output, can be executed.asJava()Converts this Scala DSL element to it's Java DSL counterpart.async()Note that an async boundary around a runnable graph does not make senseNote that an async boundary around a runnable graph does not make senseNote that an async boundary around a runnable graph does not make senseboolean<Mat> RunnableGraph<Mat>copy(org.apache.pekko.stream.impl.TraversalBuilder traversalBuilder) <Mat> org.apache.pekko.stream.impl.TraversalBuilderbooleanstatic <Mat> RunnableGraph<Mat>fromGraph(Graph<ClosedShape, Mat> g) A graph with a closed shape is logically a runnable graph, this method makes it so also in type.inthashCode()<Mat2> RunnableGraph<Mat2>mapMaterializedValue(scala.Function1<Mat, Mat2> f) Transform only the materialized value of this RunnableGraph, leaving all other properties as they were.Specifies the name of the Graph.intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>run(Materializer materializer) Run this flow and return the materialized instance from the flow.shape()The shape of a graph is all that is externally visible: its inlets and outlets.toString()org.apache.pekko.stream.impl.TraversalBuilderINTERNAL API.static <Mat> scala.Option<org.apache.pekko.stream.impl.TraversalBuilder>unapply(RunnableGraph<Mat> x$0) withAttributes(Attributes attr) Replace the attributes of thisFlowwith the given ones.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
RunnableGraph
public RunnableGraph(org.apache.pekko.stream.impl.TraversalBuilder traversalBuilder)
-
-
Method Details
-
fromGraph
A graph with a closed shape is logically a runnable graph, this method makes it so also in type. -
apply
public static <Mat> RunnableGraph<Mat> apply(org.apache.pekko.stream.impl.TraversalBuilder traversalBuilder) Flow with attached input and output, can be executed. -
unapply
public static <Mat> scala.Option<org.apache.pekko.stream.impl.TraversalBuilder> unapply(RunnableGraph<Mat> x$0) -
traversalBuilder
public org.apache.pekko.stream.impl.TraversalBuilder traversalBuilder()Description copied from interface:GraphINTERNAL API.Every materializable element must be backed by a stream layout module
- Specified by:
traversalBuilderin interfaceGraph<ClosedShape,Mat>
-
shape
Description copied from interface:GraphThe shape of a graph is all that is externally visible: its inlets and outlets.- Specified by:
shapein interfaceGraph<ClosedShape,Mat>
-
mapMaterializedValue
Transform only the materialized value of this RunnableGraph, leaving all other properties as they were. -
run
Run this flow and return the materialized instance from the flow.Note that the
ActorSystemcan be used as the implicitmaterializerparameter to use thepekko.stream.SystemMaterializerfor running the stream. -
addAttributes
Description copied from interface:GraphAdd the given attributes to thisGraph. 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.- Specified by:
addAttributesin interfaceGraph<ClosedShape,Mat>
-
withAttributes
Description copied from interface:GraphReplace the attributes of thisFlowwith the given ones. If this Flow 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.- Specified by:
withAttributesin interfaceGraph<ClosedShape,Mat>
-
named
Description copied from interface:GraphSpecifies the name of the Graph. If the name is null or empty the name is ignored, i.e.Attributes.noneis returned.- Specified by:
namedin interfaceGraph<ClosedShape,Mat>
-
async
Note that an async boundary around a runnable graph does not make sense- Specified by:
asyncin interfaceGraph<ClosedShape,Mat>
-
async
Note that an async boundary around a runnable graph does not make sense- Specified by:
asyncin interfaceGraph<ClosedShape,Mat> - Parameters:
dispatcher- Run the graph on this dispatcher
-
async
Note that an async boundary around a runnable graph does not make sense- Specified by:
asyncin interfaceGraph<ClosedShape,Mat> - Parameters:
dispatcher- Run the graph on this dispatcherinputBufferSize- Set the input buffer to this size for the graph
-
asJava
Converts this Scala DSL element to it's Java DSL counterpart. -
getAttributes
- Specified by:
getAttributesin interfaceGraph<ClosedShape,Mat>
-
copy
public <Mat> RunnableGraph<Mat> copy(org.apache.pekko.stream.impl.TraversalBuilder traversalBuilder) -
copy$default$1
public <Mat> org.apache.pekko.stream.impl.TraversalBuilder copy$default$1() -
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-