|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectakka.actor.UnstartedCell
public class UnstartedCell
| Constructor Summary | |
|---|---|
UnstartedCell(ActorSystemImpl systemImpl,
RepointableActorRef self,
Props props,
InternalActorRef supervisor)
|
|
| Method Summary | |
|---|---|
ChildrenContainer |
childrenRefs()
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. |
InternalActorRef |
getSingleChild(java.lang.String name)
Method for looking up a single child beneath this actor. |
boolean |
hasMessages()
If the actor isLocal, returns whether "user messages" are currently queued, “false” otherwise. |
boolean |
isLocal()
Returns true if the actor is local, i.e. |
boolean |
isTerminated()
Returns “true” if the actor is locally known to be terminated, “false” if alive or uncertain. |
int |
numberOfMessages()
If the actor isLocal, returns the number of "user messages" currently queued, which may be a costly operation, 0 otherwise. |
InternalActorRef |
parent()
The supervisor of this actor. |
Props |
props()
The props for this actor cell. |
void |
replaceWith(Cell cell)
|
void |
restart(java.lang.Throwable cause)
Restart this actor (will recursively restart or stop all children). |
void |
resume(java.lang.Throwable causedByFailure)
Recursively resume this actor and all its children. |
RepointableActorRef |
self()
The “self” reference which this Cell is attached to. |
void |
sendMessage(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. |
void |
sendSystemMessage(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. |
UnstartedCell |
start()
Start the cell: enqueued message must not be processed before this has been called. |
void |
stop()
Recursively terminate this actor and all its children. |
InternalActorRef |
supervisor()
|
void |
suspend()
Recursively suspend this actor and all its children. |
ActorSystem |
system()
The system within which this Cell lives. |
ActorSystemImpl |
systemImpl()
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 |
|---|
public UnstartedCell(ActorSystemImpl systemImpl,
RepointableActorRef self,
Props props,
InternalActorRef supervisor)
| Method Detail |
|---|
public ActorSystemImpl systemImpl()
Cell
systemImpl in interface Cellpublic RepointableActorRef self()
Cell
self in interface Cellpublic Props props()
Cell
props in interface Cellpublic InternalActorRef supervisor()
public void replaceWith(Cell cell)
public ActorSystem system()
Cell
system in interface Cellpublic UnstartedCell start()
Cell
start in interface Cellpublic void suspend()
Cell
suspend in interface Cellpublic void resume(java.lang.Throwable causedByFailure)
Cell
resume in interface CellcausedByFailure - (undocumented)public void restart(java.lang.Throwable cause)
Cell
restart in interface Cellcause - (undocumented)public void stop()
Cell
stop in interface Cellpublic boolean isTerminated()
Cell
isTerminated in interface Cellpublic InternalActorRef parent()
Cell
parent in interface Cellpublic ChildrenContainer childrenRefs()
Cell
childrenRefs in interface Cellpublic scala.Option<ChildRestartStats> getChildByName(java.lang.String name)
Cell
getChildByName in interface Cellname - (undocumented)
public InternalActorRef getSingleChild(java.lang.String name)
Cell
getSingleChild in interface Cellname - (undocumented)
public void sendMessage(Envelope msg)
Cell
sendMessage in interface Cellmsg - (undocumented)public void sendSystemMessage(SystemMessage msg)
Cell
sendSystemMessage in interface Cellmsg - (undocumented)public boolean isLocal()
Cell
isLocal in interface Cellpublic boolean hasMessages()
Cell
hasMessages in interface Cellpublic int numberOfMessages()
Cell
numberOfMessages in interface Cell
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||