Package akka.stream
Class Attributes.CancellationStrategy$.AfterDelay
- java.lang.Object
-
- akka.stream.Attributes.CancellationStrategy$.AfterDelay
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
- Enclosing class:
- Attributes.CancellationStrategy$
public static final class Attributes.CancellationStrategy$.AfterDelay extends java.lang.Object implements scala.Product, java.io.Serializable
Strategy that allows to delay any action whencancelStage
is invoked.The idea of this strategy is to delay any action on cancellation because it is expected that the stage is completed through another path in the meantime. The downside is that a stage and a stream may live longer than expected if no such signal is received and cancellation is invoked later on. In streams with many stages that all apply this strategy, this strategy might significantly delay the propagation of a cancellation signal because each upstream stage might impose such a delay. During this time, the stream will be mostly "silent", i.e. it cannot make progress because of backpressure, but you might still be able observe a long delay at the ultimate source.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AfterDelay(scala.concurrent.duration.FiniteDuration delay, akka.stream.Attributes.CancellationStrategy.Strategy strategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canEqual(java.lang.Object x$1)
akka.stream.Attributes.CancellationStrategy.AfterDelay
copy(scala.concurrent.duration.FiniteDuration delay, akka.stream.Attributes.CancellationStrategy.Strategy strategy)
scala.concurrent.duration.FiniteDuration
copy$default$1()
akka.stream.Attributes.CancellationStrategy.Strategy
copy$default$2()
scala.concurrent.duration.FiniteDuration
delay()
boolean
equals(java.lang.Object x$1)
int
hashCode()
int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
akka.stream.Attributes.CancellationStrategy.Strategy
strategy()
java.lang.String
toString()
-
-
-
Method Detail
-
delay
public scala.concurrent.duration.FiniteDuration delay()
-
strategy
public akka.stream.Attributes.CancellationStrategy.Strategy strategy()
-
copy
public akka.stream.Attributes.CancellationStrategy.AfterDelay copy(scala.concurrent.duration.FiniteDuration delay, akka.stream.Attributes.CancellationStrategy.Strategy strategy)
-
copy$default$1
public scala.concurrent.duration.FiniteDuration copy$default$1()
-
copy$default$2
public akka.stream.Attributes.CancellationStrategy.Strategy copy$default$2()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-