Class UnstashException<T>

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product

    public final class UnstashException<T>
    extends java.lang.RuntimeException
    implements scala.Product, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • UnstashException

        public UnstashException​(java.lang.Throwable cause,
                                Behavior<T> behavior)
    • Method Detail

      • unwrap

        public static java.lang.Throwable unwrap​(java.lang.Throwable t)
      • apply

        public static <T> UnstashException<T> apply​(java.lang.Throwable cause,
                                                    Behavior<T> behavior)
        INTERNAL API:

        When unstashing, the exception is wrapped in UnstashException because supervisor strategy and ActorAdapter need the behavior that threw. It will use the behavior in the UnstashException to emit the PreRestart and PostStop to the right behavior and install the latest behavior for resume strategy.

        Parameters:
        cause - (undocumented)
        behavior - (undocumented)
        Returns:
        (undocumented)
      • unapply

        public static <T> scala.Option<scala.Tuple2<java.lang.Throwable,​Behavior<T>>> unapply​(UnstashException<T> x$0)
      • cause

        public java.lang.Throwable cause()
      • copy$default$1

        public <T> java.lang.Throwable copy$default$1()
      • copy$default$2

        public <T> Behavior<T> 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
      • equals

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