Class Behaviors.Supervise<T>
java.lang.Object
scala.AnyVal
org.apache.pekko.actor.typed.scaladsl.Behaviors.Supervise<T>
- Enclosing class:
- Behaviors
public static final class Behaviors.Supervise<T>
extends scala.AnyVal
-
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()<Thr extends Throwable>
SuperviseBehavior<T>onFailure(SupervisorStrategy strategy, scala.reflect.ClassTag<Thr> tag) Specify theSupervisorStrategyto be invoked when the wrapped behavior throws.<Thr extends Throwable>
scala.reflect.ClassTag<scala.runtime.Nothing$>onFailure$default$2(SupervisorStrategy strategy) wrapped()
-
Method Details
-
wrapped
-
onFailure
public <Thr extends Throwable> SuperviseBehavior<T> onFailure(SupervisorStrategy strategy, scala.reflect.ClassTag<Thr> tag) Specify theSupervisorStrategyto be invoked when the wrapped behavior throws. -
onFailure$default$2
public <Thr extends Throwable> scala.reflect.ClassTag<scala.runtime.Nothing$> onFailure$default$2(SupervisorStrategy strategy) -
hashCode
public int hashCode() -
equals
-