Package org.apache.pekko.actor.dungeon
Interface FaultHandling
public interface FaultHandling
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidDo create the actor in response to a failure.voidfaultRecreate(Throwable cause) Do re-create the actor in response to a failure.voidfaultResume(Throwable causedByFailure) Do resume the actor in response to a failure.voidDo suspend the actor in response to a failure of a parent (i.e.voidvoidfinishRecreate(Throwable cause) voidvoidhandleChildTerminated(ActorRef child) voidhandleFailure(org.apache.pekko.dispatch.sysmsg.Failed f) voidhandleInvokeFailure(scala.collection.immutable.Iterable<ActorRef> childrenNotToSuspend, Throwable t) scala.PartialFunction<Throwable,scala.runtime.BoxedUnit> handleNonFatalOrInterruptedException(scala.Function1<Throwable, scala.runtime.BoxedUnit> thunk) booleanisFailed()booleanvoidvoidvoidvoidvoid
-
Method Details
-
suspendNonRecursive
void suspendNonRecursive() -
resumeNonRecursive
void resumeNonRecursive() -
_failed_$eq
-
isFailed
boolean isFailed() -
isFailedFatally
boolean isFailedFatally() -
perpetrator
ActorRef perpetrator() -
setFailed
-
clearFailed
void clearFailed() -
setFailedFatally
void setFailedFatally() -
faultRecreate
Do re-create the actor in response to a failure. -
faultSuspend
void faultSuspend()Do suspend the actor in response to a failure of a parent (i.e. the “recursive suspend” feature). -
faultResume
Do resume the actor in response to a failure.- Parameters:
causedByFailure- signifies if it was our own failure which prompted this action.
-
faultCreate
void faultCreate()Do create the actor in response to a failure. -
finishCreate
void finishCreate() -
terminate
void terminate() -
handleInvokeFailure
-
finishTerminate
void finishTerminate() -
finishRecreate
-
handleFailure
void handleFailure(org.apache.pekko.dispatch.sysmsg.Failed f) -
handleChildTerminated
-
handleNonFatalOrInterruptedException
-