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 Serializabletrait Producttrait Equalstrait MandatoryAttributetrait Attributeclass Objecttrait Matchableclass Any
Members list
In this article