CancellationStrategy

org.apache.pekko.stream.Attributes.CancellationStrategy
See theCancellationStrategy companion object
@ApiMayChange
final case class CancellationStrategy(strategy: Strategy) extends MandatoryAttribute

Cancellation strategies provide a way to configure the behavior of a stage when cancelStage is called.

It is only relevant for stream components that have more than one output and do not define a custom cancellation behavior by overriding onDownstreamFinish. In those cases, if the first output is cancelled, the default behavior is to call cancelStage which shuts down the stage completely. The given strategy will allow customization of how the shutdown procedure should be done precisely.

Attributes

Companion
object
Source
Attributes.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Attribute
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product