Package akka.actor
Class UnstartedCell
- java.lang.Object
-
- akka.actor.UnstartedCell
-
-
Constructor Summary
Constructors Constructor Description UnstartedCell(ActorSystemImpl systemImpl, RepointableActorRef self, Props props, InternalActorRef supervisor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChildrenContainerchildrenRefs()All children of this actor, including only reserved-names.scala.Option<ChildRestartStats>getChildByName(java.lang.String name)Get the stats for the named child, if that exists.InternalActorRefgetSingleChild(java.lang.String name)Method for looking up a single child beneath this actor.booleanhasMessages()If the actor isLocal, returns whether "user messages" are currently queued, “false” otherwise.booleanisLocal()Returns true if the actor is local, i.e.booleanisTerminated()Returns “true” if the actor is locally known to be terminated, “false” if alive or uncertain.intnumberOfMessages()If the actor isLocal, returns the number of "user messages" currently queued, which may be a costly operation, 0 otherwise.InternalActorRefparent()The supervisor of this actor.Propsprops()The props for this actor cell.voidreplaceWith(Cell cell)voidrestart(java.lang.Throwable cause)Restart this actor (will recursively restart or stop all children).voidresume(java.lang.Throwable causedByFailure)Recursively resume this actor and all its children.RepointableActorRefself()The “self” reference which this Cell is attached to.voidsendMessage(Envelope msg)Enqueue a message to be sent to the actor; may or may not actually schedule the actor to run, depending on which type of cell it is.voidsendSystemMessage(SystemMessage msg)Enqueue a message to be sent to the actor; may or may not actually schedule the actor to run, depending on which type of cell it is.UnstartedCellstart()Start the cell: enqueued message must not be processed before this has been called.voidstop()Recursively terminate this actor and all its children.InternalActorRefsupervisor()voidsuspend()Recursively suspend this actor and all its children.ActorSystemsystem()The system within which this Cell lives.ActorSystemImplsystemImpl()The system internals where this Cell lives.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.actor.Cell
sendMessage
-
-
-
-
Constructor Detail
-
UnstartedCell
public UnstartedCell(ActorSystemImpl systemImpl, RepointableActorRef self, Props props, InternalActorRef supervisor)
-
-
Method Detail
-
childrenRefs
public ChildrenContainer childrenRefs()
Description copied from interface:CellAll children of this actor, including only reserved-names.- Specified by:
childrenRefsin interfaceCell- Returns:
- (undocumented)
-
getChildByName
public scala.Option<ChildRestartStats> getChildByName(java.lang.String name)
Description copied from interface:CellGet the stats for the named child, if that exists.- Specified by:
getChildByNamein interfaceCell- Parameters:
name- (undocumented)- Returns:
- (undocumented)
-
getSingleChild
public InternalActorRef getSingleChild(java.lang.String name)
Description copied from interface:CellMethod for looking up a single child beneath this actor. It is racy if called from the outside.- Specified by:
getSingleChildin interfaceCell- Parameters:
name- (undocumented)- Returns:
- (undocumented)
-
hasMessages
public boolean hasMessages()
Description copied from interface:CellIf the actor isLocal, returns whether "user messages" are currently queued, “false” otherwise.- Specified by:
hasMessagesin interfaceCell- Returns:
- (undocumented)
-
isLocal
public boolean isLocal()
Description copied from interface:CellReturns true if the actor is local, i.e. if it is actually scheduled on a Thread in the current JVM when run.
-
isTerminated
public boolean isTerminated()
Description copied from interface:CellReturns “true” if the actor is locally known to be terminated, “false” if alive or uncertain.- Specified by:
isTerminatedin interfaceCell- Returns:
- (undocumented)
-
numberOfMessages
public int numberOfMessages()
Description copied from interface:CellIf the actor isLocal, returns the number of "user messages" currently queued, which may be a costly operation, 0 otherwise.- Specified by:
numberOfMessagesin interfaceCell- Returns:
- (undocumented)
-
parent
public InternalActorRef parent()
Description copied from interface:CellThe supervisor of this actor.
-
replaceWith
public void replaceWith(Cell cell)
-
restart
public void restart(java.lang.Throwable cause)
Description copied from interface:CellRestart this actor (will recursively restart or stop all children). Is only allowed to throw Fatal Throwables.
-
resume
public void resume(java.lang.Throwable causedByFailure)
Description copied from interface:CellRecursively resume this actor and all its children. Is only allowed to throw Fatal Throwables.
-
self
public RepointableActorRef self()
Description copied from interface:CellThe “self” reference which this Cell is attached to.
-
sendMessage
public void sendMessage(Envelope msg)
Description copied from interface:CellEnqueue a message to be sent to the actor; may or may not actually schedule the actor to run, depending on which type of cell it is. Is only allowed to throw Fatal Throwables.- Specified by:
sendMessagein interfaceCell- Parameters:
msg- (undocumented)
-
sendSystemMessage
public void sendSystemMessage(SystemMessage msg)
Description copied from interface:CellEnqueue a message to be sent to the actor; may or may not actually schedule the actor to run, depending on which type of cell it is. Is only allowed to throw Fatal Throwables.- Specified by:
sendSystemMessagein interfaceCell- Parameters:
msg- (undocumented)
-
start
public UnstartedCell start()
Description copied from interface:CellStart the cell: enqueued message must not be processed before this has been called. The usual action is to attach the mailbox to a dispatcher.
-
stop
public void stop()
Description copied from interface:CellRecursively terminate this actor and all its children. Is only allowed to throw Fatal Throwables.
-
supervisor
public InternalActorRef supervisor()
-
suspend
public void suspend()
Description copied from interface:CellRecursively suspend this actor and all its children. Is only allowed to throw Fatal Throwables.
-
system
public ActorSystem system()
Description copied from interface:CellThe system within which this Cell lives.
-
systemImpl
public ActorSystemImpl systemImpl()
Description copied from interface:CellThe system internals where this Cell lives.- Specified by:
systemImplin interfaceCell- Returns:
- (undocumented)
-
-