Class SimpleSupervisor<T,Thr extends Throwable>
java.lang.Object
org.apache.pekko.actor.typed.BehaviorInterceptor<Object,I>
org.apache.pekko.actor.typed.internal.AbstractSupervisor<T,Thr>
org.apache.pekko.actor.typed.internal.SimpleSupervisor<T,Thr>
- Direct Known Subclasses:
ResumeSupervisor,StopSupervisor
For cases where O == I for BehaviorInterceptor.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.pekko.actor.typed.BehaviorInterceptor
BehaviorInterceptor.PreStartTarget<T>, BehaviorInterceptor.ReceiveTarget<T>, BehaviorInterceptor.SignalTarget<T> -
Constructor Summary
ConstructorsConstructorDescriptionSimpleSupervisor(SupervisorStrategy ss, scala.reflect.ClassTag<Thr> evidence$2) -
Method Summary
Modifier and TypeMethodDescriptionaroundReceive(TypedActorContext<Object> ctx, Object msg, BehaviorInterceptor.ReceiveTarget<T> target) Intercept a message sent to the running actor.Methods inherited from class org.apache.pekko.actor.typed.internal.AbstractSupervisor
aroundSignal, aroundStart, dropped, isInstanceOfTheThrowableClass, isSame, log, log, toStringMethods inherited from class org.apache.pekko.actor.typed.BehaviorInterceptor
interceptMessageClass
-
Constructor Details
-
SimpleSupervisor
-
-
Method Details
-
aroundReceive
public Behavior<T> aroundReceive(TypedActorContext<Object> ctx, Object msg, BehaviorInterceptor.ReceiveTarget<T> target) Description copied from class:BehaviorInterceptorIntercept a message sent to the running actor. Pass the message on to the next behavior in the stack by passing it totarget.apply, returnBehaviors.samewithout invokingtargetto filter out the message.- Specified by:
aroundReceivein classBehaviorInterceptor<Object,T> - Returns:
- The behavior for next message or signal
-
handleException
protected scala.PartialFunction<Throwable,Behavior<T>> handleException(TypedActorContext<Object> ctx) -
handleExceptionOnStart
protected scala.PartialFunction<Throwable,Behavior<T>> handleExceptionOnStart(TypedActorContext<Object> ctx, BehaviorInterceptor.PreStartTarget<T> target) - Specified by:
handleExceptionOnStartin classAbstractSupervisor<T,Thr extends Throwable>
-
handleReceiveException
protected scala.PartialFunction<Throwable,Behavior<T>> handleReceiveException(TypedActorContext<Object> ctx, BehaviorInterceptor.ReceiveTarget<T> target) - Specified by:
handleReceiveExceptionin classAbstractSupervisor<T,Thr extends Throwable>
-
handleSignalException
protected scala.PartialFunction<Throwable,Behavior<T>> handleSignalException(TypedActorContext<Object> ctx, BehaviorInterceptor.SignalTarget<T> target) - Specified by:
handleSignalExceptionin classAbstractSupervisor<T,Thr extends Throwable>
-