Packages

  • package root
    Definition Classes
    root
  • package akka
    Definition Classes
    root
  • package stream
    Definition Classes
    akka
  • object Fusing

    This class holds some graph transformation functions that can fuse together multiple operation stages into synchronous execution islands.

    This class holds some graph transformation functions that can fuse together multiple operation stages into synchronous execution islands. The purpose is to reduce the number of Actors that are created in order to execute the stream and thereby improve start-up cost as well as reduce element traversal latency for large graphs. Fusing itself is a time-consuming operation, meaning that usually it is best to cache the result of this computation and reuse it instead of fusing the same graph many times.

    Fusing together all operations which allow this treatment will reduce the parallelism that is available in the stream graph’s execution—in the worst case it will become single-threaded and not benefit from multiple CPU cores at all. Where parallelism is required, the akka.stream.Attributes#AsyncBoundary attribute can be used to declare subgraph boundaries across which the graph shall not be fused.

    Definition Classes
    stream
  • FusedGraph

case class FusedGraph[+S <: akka.stream.Shape @scala.annotation.unchecked.uncheckedVariance, +M](module: FusedModule, shape: S) extends Graph[S, M] with Product with Serializable

A fused graph of the right shape, containing a FusedModule which holds more information on the operation structure of the contained stream topology for convenient graph traversal.

Source
Fusing.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, Graph[S, M], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FusedGraph
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Graph
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FusedGraph(module: FusedModule, shape: S)

Type Members

  1. type Shape = S

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

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

    Definition Classes
    Graph

Value Members

  1. def addAttributes(attr: Attributes): Graph[S, M]
    Definition Classes
    Graph
  2. def async: Graph[S, M]

    Put an asynchronous boundary around this Graph

    Put an asynchronous boundary around this Graph

    Definition Classes
    Graph
  3. val module: FusedModule
    Definition Classes
    FusedGraphGraph
  4. def named(name: String): Graph[S, M]
    Definition Classes
    Graph
  5. val shape: S
    Definition Classes
    FusedGraphGraph
  6. def withAttributes(attr: Attributes): FusedGraph[S, Nothing]
    Definition Classes
    FusedGraphGraph