Package akka.stream.scaladsl
Class RunnableGraph<Mat>
- java.lang.Object
-
- akka.stream.scaladsl.RunnableGraph<Mat>
-
- All Implemented Interfaces:
Graph<ClosedShape,Mat>,java.io.Serializable,scala.Equals,scala.Product,scala.Serializable
public final class RunnableGraph<Mat> extends java.lang.Object implements Graph<ClosedShape,Mat>, scala.Product, scala.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RunnableGraph(TraversalBuilder traversalBuilder)
-
Method Summary
All 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(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(TraversalBuilder traversalBuilder)<Mat> TraversalBuildercopy$default$1()booleanequals(java.lang.Object x$1)static <Mat> RunnableGraph<Mat>fromGraph(Graph<ClosedShape,Mat> g)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)intproductArity()java.lang.ObjectproductElement(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()TraversalBuildertraversalBuilder()INTERNAL API.static <Mat> scala.Option<TraversalBuilder>unapply(RunnableGraph<Mat> x$0)RunnableGraph<Mat>withAttributes(Attributes attr)
-
-
-
Constructor Detail
-
RunnableGraph
public RunnableGraph(TraversalBuilder traversalBuilder)
-
-
Method Detail
-
fromGraph
public static <Mat> RunnableGraph<Mat> fromGraph(Graph<ClosedShape,Mat> g)
-
apply
public static <Mat> RunnableGraph<Mat> apply(TraversalBuilder traversalBuilder)
Flow with attached input and output, can be executed.- Parameters:
traversalBuilder- (undocumented)- Returns:
- (undocumented)
-
unapply
public static <Mat> scala.Option<TraversalBuilder> unapply(RunnableGraph<Mat> x$0)
-
traversalBuilder
public 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>- Returns:
- (undocumented)
-
shape
public ClosedShape$ 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>- Returns:
- (undocumented)
-
mapMaterializedValue
public <Mat2> RunnableGraph<Mat2> mapMaterializedValue(scala.Function1<Mat,Mat2> f)
Transform only the materialized value of this RunnableGraph, leaving all other properties as they were.- Parameters:
f- (undocumented)- Returns:
- (undocumented)
-
run
public Mat run(Materializer materializer)
Run this flow and return the materialized instance from the flow.- Parameters:
materializer- (undocumented)- Returns:
- (undocumented)
-
addAttributes
public 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 interfaceGraph<ClosedShape,Mat>- Parameters:
attr- (undocumented)- Returns:
- (undocumented)
-
withAttributes
public RunnableGraph<Mat> withAttributes(Attributes attr)
- Specified by:
withAttributesin interfaceGraph<ClosedShape,Mat>
-
named
public RunnableGraph<Mat> named(java.lang.String name)
- Specified by:
namedin interfaceGraph<ClosedShape,Mat>
-
async
public RunnableGraph<Mat> async()
Note that an async boundary around a runnable graph does not make sense- Specified by:
asyncin interfaceGraph<ClosedShape,Mat>- Returns:
- (undocumented)
-
async
public RunnableGraph<Mat> async(java.lang.String dispatcher)
Note that an async boundary around a runnable graph does not make sense- Specified by:
asyncin interfaceGraph<ClosedShape,Mat>- Parameters:
dispatcher- (undocumented)- Returns:
- (undocumented)
-
async
public 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 interfaceGraph<ClosedShape,Mat>- Parameters:
dispatcher- (undocumented)inputBufferSize- (undocumented)- Returns:
- (undocumented)
-
asJava
public RunnableGraph<Mat> asJava()
Converts this Scala DSL element to it's Java DSL counterpart.
-
copy
public <Mat> RunnableGraph<Mat> copy(TraversalBuilder traversalBuilder)
-
copy$default$1
public <Mat> TraversalBuilder copy$default$1()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArityin interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElementin interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqualin interfacescala.Equals
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equalsin interfacescala.Equals- Overrides:
equalsin classjava.lang.Object
-
-