public interface UntypedActorContext extends ActorContext
Modifier and Type | Method and Description |
---|---|
void |
become(Procedure<java.lang.Object> behavior)
Changes the Actor's behavior to become the new 'Procedure' handler.
|
void |
become(Procedure<java.lang.Object> behavior,
boolean discardOld)
Changes the Actor's behavior to become the new 'Procedure' handler.
|
ActorRef |
getChild(java.lang.String name)
Returns a reference to the named child or null if no child with
that name exists.
|
java.lang.Iterable<ActorRef> |
getChildren()
Returns an unmodifiable Java Collection containing the linked actors,
please note that the backing map is thread-safe but not immutable
|
become, become, child, children, dispatcher, parent, props, receiveTimeout, self, sender, setReceiveTimeout, system, unbecome, unwatch, watch, writeObject
actorFor, actorFor, actorFor, actorFor, actorOf, actorOf, actorSelection, actorSelection, guardian, lookupRoot, provider, stop, systemImpl
java.lang.Iterable<ActorRef> getChildren()
ActorRef getChild(java.lang.String name)
name
- (undocumented)void become(Procedure<java.lang.Object> behavior)
behavior
- (undocumented)void become(Procedure<java.lang.Object> behavior, boolean discardOld)
- if discardOld = true
it will replace the top element (i.e. the current behavior)
- if discardOld = false
it will keep the current behavior and push the given one atop
The default of replacing the current behavior on the stack has been chosen to avoid memory
leaks in case client code is written without consulting this documentation first (i.e.
always pushing new behaviors and never issuing an unbecome()
)
behavior
- (undocumented)discardOld
- (undocumented)