Package akka.stream

Class 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 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

      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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface scala.Product

        productElementNames
    • Constructor Detail

      • AfterDelay

        public AfterDelay​(scala.concurrent.duration.FiniteDuration delay,
                          akka.stream.Attributes.CancellationStrategy.Strategy strategy)
    • 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 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)
        Specified by:
        productElementName in interface scala.Product
      • hashCode

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

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

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