Class Attributes.CancellationStrategy$.PropagateFailure$

java.lang.Object
org.apache.pekko.stream.Attributes.CancellationStrategy$.PropagateFailure$
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product
Enclosing class:
Attributes.CancellationStrategy$

public static class Attributes.CancellationStrategy$.PropagateFailure$ extends Object implements scala.Product, Serializable
Strategy that treats cancelStage in different ways depending on the cause that was given to the cancellation.

If the cause was a regular, active cancellation (SubscriptionWithCancelException.NoMoreElementsNeeded), the stage receiving this cancellation is completed regularly.

If another cause was given, this is treated as an error and the behavior is the same as with failStage.

This is a good default strategy.

See Also:
  • Field Details

  • Constructor Details

    • PropagateFailure$

      public PropagateFailure$()
  • Method Details

    • productPrefix

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

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

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

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

      public boolean canEqual(Object x$1)
      Specified by:
      canEqual in interface scala.Equals
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object