Class Attributes.CancellationStrategy$.AfterDelay

  • All Implemented Interfaces:, scala.Equals, scala.Product
    Enclosing class:

    public static final class Attributes.CancellationStrategy$.AfterDelay
    extends java.lang.Object
    implements scala.Product,
    Strategy that allows to delay any action when cancelStage 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

      Constructor Description
      AfterDelay​(scala.concurrent.duration.FiniteDuration delay, strategy)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canEqual​(java.lang.Object x$1) copy​(scala.concurrent.duration.FiniteDuration delay, strategy)  
      scala.concurrent.duration.FiniteDuration copy$default$1() 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() strategy()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AfterDelay

        public AfterDelay​(scala.concurrent.duration.FiniteDuration delay,
    • Method Detail

      • delay

        public scala.concurrent.duration.FiniteDuration delay()
      • strategy

        public strategy()
      • copy

        public copy​(scala.concurrent.duration.FiniteDuration delay,
      • copy$default$1

        public scala.concurrent.duration.FiniteDuration copy$default$1()
      • copy$default$2

        public copy$default$2()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • productElementName

        public java.lang.String productElementName​(int x$1)
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        equals in class java.lang.Object