Packages

final class NestedMaterializationCancellationPolicy extends MandatoryAttribute

Nested materialization cancellation strategy provides a way to configure the cancellation behavior of stages that materialize a nested flow.

When cancelled before materializing their nested flows, these stages can either immediately cancel (default behaviour) without materializing the nested flow or wait for the nested flow to materialize and then propagate the cancellation signal through it.

This applies to akka.stream.scaladsl.FlowOps.flatMapPrefix, akka.stream.scaladsl.Flow.futureFlow (and derivations such as akka.stream.scaladsl.Flow.lazyFutureFlow). These operators either delay the nested flow's materialization or wait for a future to complete before doing so, in this period of time they may receive a downstream cancellation signal. When this happens these operators will behave according to this Attribute: when set to true they will 'stash' the signal and later deliver it to the materialized nested flow , otherwise these stages will immediately cancel without materializing the nested flow.

Source
Attributes.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NestedMaterializationCancellationPolicy
  2. MandatoryAttribute
  3. Attribute
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. val propagateToNestedMaterialization: Boolean
  2. def toString(): String
    Definition Classes
    NestedMaterializationCancellationPolicy → AnyRef → Any