Changes the Actor's behavior to become the new 'Receive' (PartialFunction[Any, Unit]) handler.
Changes the Actor's behavior to become the new 'Receive' (PartialFunction[Any, Unit]) handler. This method acts upon the behavior stack as follows:
discardOld = true
it will replace the top element (i.e. the current behavior)discardOld = 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()
)
Changes the Actor's behavior to become the new 'Receive' (PartialFunction[Any, Unit]) handler.
Changes the Actor's behavior to become the new 'Receive' (PartialFunction[Any, Unit]) handler. Replaces the current behavior on the top of the behavior stack.
Returns the supervising parent ActorRef.
Returns the supervising parent ActorRef.
The system that the actor belongs to.
The system that the actor belongs to. Importing this member will place an implicit ActorSystem in scope.
Reverts the Actor behavior to the previous one on the behavior stack.
Reverts the Actor behavior to the previous one on the behavior stack.
Unregisters this actor as Monitor for the provided ActorRef.
Unregisters this actor as Monitor for the provided ActorRef.
the provided ActorRef
Registers this actor as a Monitor for the provided ActorRef.
Registers this actor as a Monitor for the provided ActorRef. This actor will receive a Terminated(subject) message when watched actor is terminated.
the provided ActorRef