Class UnstashException$

java.lang.Object
org.apache.pekko.actor.typed.internal.UnstashException$
All Implemented Interfaces:
Serializable

public class UnstashException$ extends Object implements Serializable
INTERNAL API
See Also:
  • Field Details

    • MODULE$

      public static final UnstashException$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • UnstashException$

      public UnstashException$()
  • Method Details

    • unwrap

      public Throwable unwrap(Throwable t)
    • apply

      public <T> org.apache.pekko.actor.typed.internal.UnstashException<T> apply(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.

    • unapply

      public <T> scala.Option<scala.Tuple2<Throwable,Behavior<T>>> unapply(org.apache.pekko.actor.typed.internal.UnstashException<T> x$0)