Package org.apache.pekko.stream
Class Attributes.CancellationStrategy
java.lang.Object
org.apache.pekko.stream.Attributes.CancellationStrategy
- All Implemented Interfaces:
- Serializable,- Attributes.Attribute,- Attributes.MandatoryAttribute,- scala.Equals,- scala.Product
- Enclosing class:
- Attributes
public static final class Attributes.CancellationStrategy
extends Object
implements Attributes.MandatoryAttribute, scala.Product, Serializable
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.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCancellationStrategy(org.apache.pekko.stream.Attributes.CancellationStrategy.Strategy strategy) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleancopy(org.apache.pekko.stream.Attributes.CancellationStrategy.Strategy strategy) org.apache.pekko.stream.Attributes.CancellationStrategy.StrategybooleaninthashCode()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>org.apache.pekko.stream.Attributes.CancellationStrategy.Strategystrategy()toString()Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.ProductproductElementNames
- 
Constructor Details- 
CancellationStrategypublic CancellationStrategy(org.apache.pekko.stream.Attributes.CancellationStrategy.Strategy strategy) 
 
- 
- 
Method Details- 
strategypublic org.apache.pekko.stream.Attributes.CancellationStrategy.Strategy strategy()
- 
copypublic Attributes.CancellationStrategy copy(org.apache.pekko.stream.Attributes.CancellationStrategy.Strategy strategy) 
- 
copy$default$1public org.apache.pekko.stream.Attributes.CancellationStrategy.Strategy copy$default$1()
- 
productPrefix- Specified by:
- productPrefixin interface- scala.Product
 
- 
productAritypublic int productArity()- Specified by:
- productArityin interface- scala.Product
 
- 
productElement- Specified by:
- productElementin interface- scala.Product
 
- 
productIterator- Specified by:
- productIteratorin interface- scala.Product
 
- 
canEqual- Specified by:
- canEqualin interface- scala.Equals
 
- 
productElementName- Specified by:
- productElementNamein interface- scala.Product
 
- 
hashCodepublic int hashCode()
- 
toString
- 
equals
 
-