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 Summary
ConstructorsConstructorDescriptionCancellationStrategy(org.apache.pekko.stream.Attributes.CancellationStrategy.Strategy strategy) -
Method Summary
Modifier 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.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
CancellationStrategy
public CancellationStrategy(org.apache.pekko.stream.Attributes.CancellationStrategy.Strategy strategy)
-
-
Method Details
-
strategy
public org.apache.pekko.stream.Attributes.CancellationStrategy.Strategy strategy() -
copy
public Attributes.CancellationStrategy copy(org.apache.pekko.stream.Attributes.CancellationStrategy.Strategy strategy) -
copy$default$1
public org.apache.pekko.stream.Attributes.CancellationStrategy.Strategy copy$default$1() -
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-