Package akka.actor

Interface UntypedActorContext

  • All Superinterfaces:
    ActorContext, ActorRefFactory
    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 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) - 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())

        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.