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 TypeMethodDescriptionboolean
copy
(org.apache.pekko.stream.Attributes.CancellationStrategy.Strategy strategy) org.apache.pekko.stream.Attributes.CancellationStrategy.Strategy
boolean
int
hashCode()
int
productElement
(int x$1) productElementName
(int x$1) scala.collection.Iterator<Object>
org.apache.pekko.stream.Attributes.CancellationStrategy.Strategy
strategy()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArity
in interfacescala.Product
-
productElement
- Specified by:
productElement
in interfacescala.Product
-
productIterator
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-