RunnableGraph

org.apache.pekko.stream.scaladsl.RunnableGraph
See theRunnableGraph companion object
final case class RunnableGraph[+Mat](traversalBuilder: TraversalBuilder) extends Graph[ClosedShape, Mat]

Flow with attached input and output, can be executed.

Attributes

Companion
object
Source
Flow.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Graph[ClosedShape, Mat]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited types

Type-level accessor for the shape parameter of this graph.

Type-level accessor for the shape parameter of this graph.

Attributes

Inherited from:
Graph
Source
Graph.scala

Value members

Concrete methods

override def addAttributes(attr: Attributes): RunnableGraph[Mat]

Add the given attributes to this Graph. 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.

Add the given attributes to this Graph. 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.

Attributes

Definition Classes
Source
Flow.scala
def asJava: RunnableGraph[Mat]

Converts this Scala DSL element to it's Java DSL counterpart.

Converts this Scala DSL element to it's Java DSL counterpart.

Attributes

Source
Flow.scala
override def async: RunnableGraph[Mat]

Note that an async boundary around a runnable graph does not make sense

Note that an async boundary around a runnable graph does not make sense

Attributes

Definition Classes
Source
Flow.scala
override def async(dispatcher: String): RunnableGraph[Mat]

Note that an async boundary around a runnable graph does not make sense

Note that an async boundary around a runnable graph does not make sense

Attributes

Definition Classes
Source
Flow.scala
override def async(dispatcher: String, inputBufferSize: Int): RunnableGraph[Mat]

Note that an async boundary around a runnable graph does not make sense

Note that an async boundary around a runnable graph does not make sense

Attributes

Definition Classes
Source
Flow.scala
override def getAttributes: Attributes

Attributes

Definition Classes
Source
Flow.scala
def mapMaterializedValue[Mat2](f: Mat => Mat2): RunnableGraph[Mat2]

Transform only the materialized value of this RunnableGraph, leaving all other properties as they were.

Transform only the materialized value of this RunnableGraph, leaving all other properties as they were.

Attributes

Source
Flow.scala
override def named(name: String): RunnableGraph[Mat]

Specifies the name of the Graph. If the name is null or empty the name is ignored, i.e. #none is returned.

Specifies the name of the Graph. If the name is null or empty the name is ignored, i.e. #none is returned.

Attributes

Definition Classes
Source
Flow.scala
def run()(implicit materializer: Materializer): Mat

Run this flow and return the materialized instance from the flow.

Run this flow and return the materialized instance from the flow.

Note that the ActorSystem can be used as the implicit materializer parameter to use the pekko.stream.SystemMaterializer for running the stream.

Attributes

Source
Flow.scala
override def shape: ClosedShape

The shape of a graph is all that is externally visible: its inlets and outlets.

The shape of a graph is all that is externally visible: its inlets and outlets.

Attributes

Definition Classes
Source
Flow.scala
override def withAttributes(attr: Attributes): RunnableGraph[Mat]

Replace the attributes of this Flow with 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.

Replace the attributes of this Flow with 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.

Attributes

Definition Classes
Source
Flow.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product