Package akka.actor.typed.internal
Class UnstashException<T>
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- akka.actor.typed.internal.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 Summary
Constructors Constructor Description UnstashException(java.lang.Throwable cause, Behavior<T> behavior)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> UnstashException<T>
apply(java.lang.Throwable cause, Behavior<T> behavior)
INTERNAL API:Behavior<T>
behavior()
boolean
canEqual(java.lang.Object x$1)
java.lang.Throwable
cause()
<T> UnstashException<T>
copy(java.lang.Throwable cause, Behavior<T> behavior)
<T> java.lang.Throwable
copy$default$1()
<T> Behavior<T>
copy$default$2()
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()
static <T> scala.Option<scala.Tuple2<java.lang.Throwable,Behavior<T>>>
unapply(UnstashException<T> x$0)
static java.lang.Throwable
unwrap(java.lang.Throwable t)
-
-
-
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.
-
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
public <T> UnstashException<T> copy(java.lang.Throwable cause, Behavior<T> behavior)
-
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 interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-