Package akka.actor.dungeon
Interface FaultHandling
-
- All Known Implementing Classes:
ActorCell
,ResizablePoolCell
,RoutedActorCell
public interface FaultHandling
Do 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)
void
clearFailed()
void
faultCreate()
Do create the actor in response to a failure.void
faultRecreate(java.lang.Throwable cause)
Do re-create the actor in response to a failure.void
faultResume(java.lang.Throwable causedByFailure)
Do resume the actor in response to a failure.void
faultSuspend()
Do suspend the actor in response to a failure of a parent (i.e.void
finishCreate()
void
finishRecreate(java.lang.Throwable cause, Actor failedActor)
void
finishTerminate()
void
handleChildTerminated(ActorRef child)
void
handleFailure(Failed f)
void
handleInvokeFailure(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)
boolean
isFailed()
ActorRef
perpetrator()
void
resumeNonRecursive()
void
setFailed(ActorRef perpetrator)
void
suspendNonRecursive()
void
terminate()
-
-
-
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()
-
-