akka.actor.dungeon
Interface FaultHandling

All Known Implementing Classes:
ActorCell, ResizablePoolCell, RoutedActorCell

public interface FaultHandling


Method Summary
 ActorRef _failed()
           
 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

suspendNonRecursive

void suspendNonRecursive()

resumeNonRecursive

void resumeNonRecursive()

_failed

ActorRef _failed()

isFailed

boolean isFailed()

setFailed

void setFailed(ActorRef perpetrator)

clearFailed

void clearFailed()

perpetrator

ActorRef perpetrator()

faultRecreate

void faultRecreate(java.lang.Throwable cause)
Do re-create the actor in response to a failure.

Parameters:
cause - (undocumented)

faultSuspend

void faultSuspend()
Do suspend the actor in response to a failure of a parent (i.e. the &ldquo;recursive suspend&rdquo; feature).


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.

faultCreate

void faultCreate()
Do create the actor in response to a failure.


finishCreate

void finishCreate()

terminate

void terminate()

handleInvokeFailure

void handleInvokeFailure(scala.collection.immutable.Iterable<ActorRef> childrenNotToSuspend,
                         java.lang.Throwable t)

finishTerminate

void finishTerminate()

finishRecreate

void finishRecreate(java.lang.Throwable cause,
                    Actor failedActor)

handleFailure

void handleFailure(Failed f)

handleChildTerminated

void handleChildTerminated(ActorRef child)

handleNonFatalOrInterruptedException

scala.PartialFunction<java.lang.Throwable,scala.runtime.BoxedUnit> handleNonFatalOrInterruptedException(scala.Function1<java.lang.Throwable,scala.runtime.BoxedUnit> thunk)