Class Attributes.CancellationStrategy
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.
Inherited Members
Namespace: Akka.Streams
Assembly: Akka.Streams.dll
Syntax
public sealed class Attributes.CancellationStrategy : Attributes.IMandatoryAttribute, Attributes.IAttribute
Constructors
| Edit this page View SourceCancellationStrategy(IStrategy)
Declaration
public CancellationStrategy(Attributes.CancellationStrategy.IStrategy strategy)
Parameters
Type | Name | Description |
---|---|---|
Attributes.CancellationStrategy.IStrategy | strategy |
Properties
| Edit this page View SourceStrategy
Declaration
public Attributes.CancellationStrategy.IStrategy Strategy { get; }
Property Value
Type | Description |
---|---|
Attributes.CancellationStrategy.IStrategy |