Package akka.actor
Interface UntypedActorContext
-
- All Superinterfaces:
ActorContext
,ActorRefFactory
,ClassicActorContextProvider
- All Known Implementing Classes:
ActorCell
,ResizablePoolCell
,RoutedActorCell
public interface UntypedActorContext extends ActorContext
Deprecated.Use AbstractActor.ActorContext instead of UntypedActorContext. Since 2.5.0.Returns an unmodifiable Java Collection containing the linked actors, please note that the backing map is thread-safe but not immutable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
become(Procedure<java.lang.Object> behavior)
Deprecated.Changes the Actor's behavior to become the new 'Procedure' handler.void
become(Procedure<java.lang.Object> behavior, boolean discardOld)
Deprecated.Changes the Actor's behavior to become the new 'Procedure' handler.ActorRef
getChild(java.lang.String name)
Deprecated.Returns a reference to the named child or null if no child with that name exists.java.lang.Iterable<ActorRef>
getChildren()
Deprecated.-
Methods inherited from interface akka.actor.ActorContext
become, become, child, children, dispatcher, parent, props, receiveTimeout, self, sender, setReceiveTimeout, system, unbecome, unwatch, watch, watchWith, writeObject
-
Methods inherited from interface akka.actor.ActorRefFactory
actorFor, actorFor, actorFor, actorFor, actorOf, actorOf, actorSelection, actorSelection, guardian, lookupRoot, provider, stop, systemImpl
-
Methods inherited from interface akka.actor.ClassicActorContextProvider
classicActorContext
-
-
-
-
Method Detail
-
become
void become(Procedure<java.lang.Object> behavior)
Deprecated.Changes the Actor's behavior to become the new 'Procedure' handler. Replaces the current behavior on the top of the behavior stack.- Parameters:
behavior
- (undocumented)
-
become
void become(Procedure<java.lang.Object> behavior, boolean discardOld)
Deprecated.Changes the Actor's behavior to become the new 'Procedure' handler. This method acts upon the behavior stack as follows:- if
discardOld = true
it will replace the top element (i.e. the current behavior) - ifdiscardOld = false
it will keep the current behavior and push the given one atopThe 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()
)- Parameters:
behavior
- (undocumented)discardOld
- (undocumented)
-
getChild
ActorRef getChild(java.lang.String name)
Deprecated.Returns a reference to the named child or null if no child with that name exists.- Parameters:
name
- (undocumented)- Returns:
- (undocumented)
-
getChildren
java.lang.Iterable<ActorRef> getChildren()
Deprecated.
-
-