Package org.apache.pekko.stream.scaladsl
Class RunnableGraph<Mat>
- java.lang.Object
- 
- org.apache.pekko.stream.scaladsl.RunnableGraph<Mat>
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- Graph<ClosedShape,Mat>,- scala.Equals,- scala.Product
 
 public final class RunnableGraph<Mat> extends java.lang.Object implements Graph<ClosedShape,Mat>, scala.Product, java.io.Serializable - See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.pekko.stream.GraphGraph.GraphMapMatVal<S extends Shape,M>
 
- 
 - 
Constructor SummaryConstructors Constructor Description RunnableGraph(org.apache.pekko.stream.impl.TraversalBuilder traversalBuilder)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RunnableGraph<Mat>addAttributes(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.RunnableGraph<Mat>asJava()Converts this Scala DSL element to it's Java DSL counterpart.RunnableGraph<Mat>async()Note that an async boundary around a runnable graph does not make senseRunnableGraph<Mat>async(java.lang.String dispatcher)Note that an async boundary around a runnable graph does not make senseRunnableGraph<Mat>async(java.lang.String dispatcher, int inputBufferSize)Note that an async boundary around a runnable graph does not make sensebooleancanEqual(java.lang.Object x$1)<Mat> RunnableGraph<Mat>copy(org.apache.pekko.stream.impl.TraversalBuilder traversalBuilder)<Mat> org.apache.pekko.stream.impl.TraversalBuildercopy$default$1()booleanequals(java.lang.Object x$1)static <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.AttributesgetAttributes()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.RunnableGraph<Mat>named(java.lang.String name)Specifies the name of the Graph.intproductArity()java.lang.ObjectproductElement(int x$1)java.lang.StringproductElementName(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()Matrun(Materializer materializer)Run this flow and return the materialized instance from the flow.ClosedShape$shape()The shape of a graph is all that is externally visible: its inlets and outlets.java.lang.StringtoString()org.apache.pekko.stream.impl.TraversalBuildertraversalBuilder()INTERNAL API.static <Mat> scala.Option<org.apache.pekko.stream.impl.TraversalBuilder>unapply(RunnableGraph<Mat> x$0)RunnableGraph<Mat>withAttributes(Attributes attr)Replace the attributes of thisFlowwith the given ones.
 
- 
- 
- 
Method Detail- 
fromGraphpublic static <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.
 - 
applypublic static <Mat> RunnableGraph<Mat> apply(org.apache.pekko.stream.impl.TraversalBuilder traversalBuilder) Flow with attached input and output, can be executed.
 - 
unapplypublic static <Mat> scala.Option<org.apache.pekko.stream.impl.TraversalBuilder> unapply(RunnableGraph<Mat> x$0) 
 - 
traversalBuilderpublic 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 interface- Graph<ClosedShape,Mat>
 
 - 
shapepublic ClosedShape$ shape() Description copied from interface:GraphThe shape of a graph is all that is externally visible: its inlets and outlets.- Specified by:
- shapein interface- Graph<ClosedShape,Mat>
 
 - 
mapMaterializedValuepublic <Mat2> RunnableGraph<Mat2> mapMaterializedValue(scala.Function1<Mat,Mat2> f) Transform only the materialized value of this RunnableGraph, leaving all other properties as they were.
 - 
runpublic Mat run(Materializer materializer) 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.
 - 
addAttributespublic RunnableGraph<Mat> addAttributes(Attributes attr) 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 interface- Graph<ClosedShape,Mat>
 
 - 
withAttributespublic RunnableGraph<Mat> withAttributes(Attributes attr) 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 interface- Graph<ClosedShape,Mat>
 
 - 
namedpublic RunnableGraph<Mat> named(java.lang.String name) 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 interface- Graph<ClosedShape,Mat>
 
 - 
asyncpublic RunnableGraph<Mat> async() Note that an async boundary around a runnable graph does not make sense- Specified by:
- asyncin interface- Graph<ClosedShape,Mat>
 
 - 
asyncpublic RunnableGraph<Mat> async(java.lang.String dispatcher) Note that an async boundary around a runnable graph does not make sense- Specified by:
- asyncin interface- Graph<ClosedShape,Mat>
- Parameters:
- dispatcher- Run the graph on this dispatcher
 
 - 
asyncpublic RunnableGraph<Mat> async(java.lang.String dispatcher, int inputBufferSize) Note that an async boundary around a runnable graph does not make sense- Specified by:
- asyncin interface- Graph<ClosedShape,Mat>
- Parameters:
- dispatcher- Run the graph on this dispatcher
- inputBufferSize- Set the input buffer to this size for the graph
 
 - 
asJavapublic RunnableGraph<Mat> asJava() Converts this Scala DSL element to it's Java DSL counterpart.
 - 
getAttributespublic Attributes getAttributes() - Specified by:
- getAttributesin interface- Graph<ClosedShape,Mat>
 
 - 
copypublic <Mat> RunnableGraph<Mat> copy(org.apache.pekko.stream.impl.TraversalBuilder traversalBuilder) 
 - 
copy$default$1public <Mat> org.apache.pekko.stream.impl.TraversalBuilder copy$default$1() 
 - 
productPrefixpublic java.lang.String productPrefix() - Specified by:
- productPrefixin interface- scala.Product
 
 - 
productAritypublic int productArity() - Specified by:
- productArityin interface- scala.Product
 
 - 
productElementpublic java.lang.Object productElement(int x$1) - Specified by:
- productElementin interface- scala.Product
 
 - 
productIteratorpublic scala.collection.Iterator<java.lang.Object> productIterator() - Specified by:
- productIteratorin interface- scala.Product
 
 - 
canEqualpublic boolean canEqual(java.lang.Object x$1) - Specified by:
- canEqualin interface- scala.Equals
 
 - 
productElementNamepublic java.lang.String productElementName(int x$1) - Specified by:
- productElementNamein interface- scala.Product
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object x$1) - Specified by:
- equalsin interface- scala.Equals
- Overrides:
- equalsin class- java.lang.Object
 
 
- 
 
-