Package akka.actor.dungeon
Interface FaultHandling
-
- All Known Implementing Classes:
ActorCell,ResizablePoolCell,RoutedActorCell
public interface FaultHandlingDo re-create the actor in response to a failure.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void_failed_$eq(ActorRef x$1)voidclearFailed()voidfaultCreate()Do create the actor in response to a failure.voidfaultRecreate(java.lang.Throwable cause)Do re-create the actor in response to a failure.voidfaultResume(java.lang.Throwable causedByFailure)Do resume the actor in response to a failure.voidfaultSuspend()Do suspend the actor in response to a failure of a parent (i.e.voidfinishCreate()voidfinishRecreate(java.lang.Throwable cause, Actor failedActor)voidfinishTerminate()voidhandleChildTerminated(ActorRef child)voidhandleFailure(Failed f)voidhandleInvokeFailure(scala.collection.immutable.Iterable<ActorRef> childrenNotToSuspend, java.lang.Throwable t)scala.PartialFunction<java.lang.Throwable,scala.runtime.BoxedUnit>handleNonFatalOrInterruptedException(scala.Function1<java.lang.Throwable,scala.runtime.BoxedUnit> thunk)booleanisFailed()ActorRefperpetrator()voidresumeNonRecursive()voidsetFailed(ActorRef perpetrator)voidsuspendNonRecursive()voidterminate()
-
-
-
Method Detail
-
_failed_$eq
void _failed_$eq(ActorRef x$1)
-
clearFailed
void clearFailed()
-
faultCreate
void faultCreate()
Do create the actor in response to a failure.
-
faultRecreate
void faultRecreate(java.lang.Throwable cause)
Do re-create the actor in response to a failure.- Parameters:
cause- (undocumented)
-
faultResume
void faultResume(java.lang.Throwable causedByFailure)
Do resume the actor in response to a failure.- Parameters:
causedByFailure- signifies if it was our own failure which prompted this action.
-
faultSuspend
void faultSuspend()
Do suspend the actor in response to a failure of a parent (i.e. the “recursive suspend” feature).
-
finishCreate
void finishCreate()
-
finishRecreate
void finishRecreate(java.lang.Throwable cause, Actor failedActor)
-
finishTerminate
void finishTerminate()
-
handleChildTerminated
void handleChildTerminated(ActorRef child)
-
handleFailure
void handleFailure(Failed f)
-
handleInvokeFailure
void handleInvokeFailure(scala.collection.immutable.Iterable<ActorRef> childrenNotToSuspend, java.lang.Throwable t)
-
handleNonFatalOrInterruptedException
scala.PartialFunction<java.lang.Throwable,scala.runtime.BoxedUnit> handleNonFatalOrInterruptedException(scala.Function1<java.lang.Throwable,scala.runtime.BoxedUnit> thunk)
-
isFailed
boolean isFailed()
-
perpetrator
ActorRef perpetrator()
-
resumeNonRecursive
void resumeNonRecursive()
-
setFailed
void setFailed(ActorRef perpetrator)
-
suspendNonRecursive
void suspendNonRecursive()
-
terminate
void terminate()
-
-